Function at 0x443970
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
push edi
mov edi, dword [esi]
push 2
push edi
mov dword [esp + 0x1c], esi
call fcn.004455d0
add esp, 8
test eax, eax
je 0x443998
or esi, 0xffffffff
jmp 0x443d70
mov ebx, dword [edi + 8]
test ebx, ebx
jne 0x4439c2
mov eax, dword [edi + 0x1c]
cmp eax, 2
je 0x4439ac
cmp eax, 1
jne 0x4439c2
mov eax, dword [esp + 0x64]
push eax
push esi
call fcn.00443eb0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ebp, dword [esp + 0x64]
mov eax, dword [ebp + 4]
test eax, eax
mov ecx, dword [edi + 0x70]
mov esi, dword [edi + 0x4c]
mov dword [esp + 0x14], ecx
je 0x4439e0
mov edx, dword [ebp + 8]
mov dword [esp + 0x1c], edx
jmp 0x4439ee
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.00460f00
add esp, 8
test esi, esi
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0x10
je 0x443a0f
mov eax, dword [esi + 4]
mov dword [esp + 0x24], eax
test ebx, ebx
jne 0x443a5d
push 0x24
push 0x5dec8c
call fcn.00478520
mov ebx, eax
mov eax, dword [ebx + 0x20]
add esp, 8
test eax, eax
jne 0x443a49
push str.iso8859_1
push 0
call fcn.0049b030
push 0
push 0x444160
mov dword [ebx + 0x20], eax
call fcn.004356a0
add esp, 0x10
mov ebx, dword [ebx + 0x20]
test ebx, ebx
jne 0x443a5d
push str.attempted_gets_on_binary_channel_where_no_iso8859_1_encoding_available
call fcn.00406da0
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x44], esi
mov esi, dword [ebp + 4]
mov dword [esp + 0x40], ebx
xor ebx, ebx
add esi, eax
lea ecx, [esp + 0x10]
mov eax, esi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x60], eax
mov ecx, dword [edi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], ecx
cmp esi, eax
jb 0x443ad6
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x38]
push edx
push eax
call fcn.00444190
add esp, 8
test eax, eax
jne 0x443d87
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x50]
lea eax, [ecx + esi]
mov dword [esp + 0x60], eax
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x443b00
cmp esi, eax
mov ecx, esi
jae 0x443b00
movsx ebx, byte [ecx]
cmp ebx, edx
je 0x443af2
inc ecx
cmp ecx, eax
jb 0x443ae4
jmp 0x443afc
mov eax, ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x18]
mov ecx, dword [edi + 0x1c]
cmp ecx, 3
ja case.default.0x443b0c
jmp dword [ecx*4 + 0x443e94]
cmp esi, eax
jae case.default.0x443b0c
cmp byte [esi], 0xa
je 0x443cd1
inc esi
cmp esi, eax
jb 0x443b1b
jmp case.default.0x443b0c
cmp esi, eax
jae case.default.0x443b0c
cmp byte [esi], 0xd
je 0x443cd1
inc esi
cmp esi, eax
jb 0x443b36
jmp case.default.0x443b0c
cmp esi, eax
jae case.default.0x443b0c
cmp byte [esi], 0xd
jne 0x443bad
inc esi
cmp esi, eax
jb 0x443ba4
cmp esi, ebx
je 0x443b9c
mov ecx, dword [ebp + 4]
lea edx, [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
push edx
sub esi, ecx
push eax
mov ebx, esi
call fcn.00444190
add esp, 8
test eax, eax
jne 0x443d87
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x50]
mov esi, dword [ebp + 4]
lea eax, [edx + ecx]
add esi, ebx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x60], eax
cmp esi, eax
jae 0x443ded
cmp byte [esi], 0xa
je 0x443df4
inc esi
cmp esi, eax
jb 0x443b51
jmp case.default.0x443b0c
mov ecx, dword [edi + 4]
test ch, 0x10
mov edx, esi
mov ebp, 1
je 0x443c7c
and ecx, 0xffffefff
mov dword [edi + 4], ecx
mov eax, dword [esp + 0x60]
cmp edx, eax
jae 0x443c78
cmp byte [edx], 0xa
jne 0x443c78
mov eax, dword [esp + 0x44]
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
push 4
lea edx, [esp + 0x44]
push edx
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [eax + 4]
lea esi, [eax + 4]
push ecx
mov ecx, dword [esp + 0x60]
lea eax, [edx + eax + 0x10]
push eax
push ecx
push 0
call fcn.0049b6c0
mov eax, dword [esi]
mov edx, dword [esp + 0x4c]
add eax, edx
mov dword [esi], eax
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
sub edx, eax
mov eax, dword [esp + 0x80]
dec ecx
dec eax
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x3c]
sub ecx, eax
mov dword [esp + 0x78], edx
push ecx
lea edx, [eax + 1]
push edx
push eax
call fcn.005839c0
mov eax, dword [esp + 0x98]
add esp, 0x38
dec eax
mov dword [esp + 0x60], eax
mov esi, dword [esp + 0x10]
cmp esi, eax
jae 0x443c95
mov cl, byte [esi]
cmp cl, 0xd
je 0x443dff
cmp cl, 0xa
je 0x443cd6
inc esi
cmp esi, eax
jb 0x443c80
mov ebp, dword [esp + 0x64]
test ebx, ebx
je 0x443cba
mov dword [esp + 0x60], ebx
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0x10]
or ecx, 0x600
or eax, 2
mov dword [edi + 4], ecx
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [edi + 4]
test ch, 2
jne 0x443e5a
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x443aa9
mov ebp, 1
mov ebx, dword [esp + 0x44]
test ebx, ebx
jne 0x443ceb
push str.Tcl_GetsObj:_gotEOL_reached_with_bufPtrNULL
call fcn.00406da0
add esp, 4
mov edx, dword [esp + 0x48]
mov dword [edi + 0xc], edx
lea ecx, [edi + 0xc]
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x54]
push edx
mov edx, esi
sub edx, eax
lea edx, [edx + ebp + 3]
push edx
mov edx, dword [ebx + 4]
push eax
mov eax, dword [edi + 0x10]
push ecx
mov ecx, dword [esp + 0x64]
push eax
push ecx
mov ecx, dword [esp + 0x60]
lea eax, [ebx + edx + 0x10]
push eax
push ecx
push 0
call fcn.0049b6c0
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x78]
add eax, edx
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x90]
sub esi, dword [eax + 4]
push esi
push eax
call fcn.00478ba0
mov eax, dword [esp + 0x48]
push eax
call fcn.00444470
and dword [edi + 4], 0xfffff7ff
mov esi, dword [esp + 0x90]
mov eax, dword [esp + 0x8c]
sub esi, ebp
add esp, 0x38
add esi, eax
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004469f0
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov esi, dword [edi + 0x4c]
test esi, esi
jne 0x443d9b
push str.Tcl_GetsObj:_restore_reached_with_bufPtrNULL
call fcn.00406da0
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x443db7
mov dword [eax + 4], 0x10
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x443da9
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00444470
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], eax
mov ecx, dword [esp + 0x20]
push ecx
push ebp
call fcn.00478ba0
mov eax, dword [edi + 4]
or eax, 0x4000
add esp, 0xc
mov dword [edi + 4], eax
or esi, 0xffffffff
jmp 0x443d70
xor ebp, ebp
jmp 0x443cd6
dec esi
mov ebp, 2
jmp 0x443cd6
inc esi
cmp esi, eax
jne 0x443e4a
cmp esi, ebx
je 0x443e35
mov ebx, dword [esp + 0x64]
mov ecx, dword [ebx + 4]
lea edx, [esp + 0x38]
mov dword [esp + 0x10], eax
push edx
lea eax, [esp + 0x64]
sub esi, ecx
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.004443c0
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x6c]
add esp, 0xc
add esi, edx
cmp esi, eax
jb 0x443e4a
mov eax, dword [edi + 4]
dec esi
or eax, 0x1000
mov dword [edi + 4], eax
jmp 0x443cd6
cmp byte [esi], 0xa
jne 0x443e54
mov ebp, 2
dec esi
jmp 0x443cd6
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x1c]
add edx, ecx
xor ebp, ebp
cmp eax, edx
mov esi, eax
jne 0x443cd6
mov eax, dword [esp + 0x64]
push ecx
push eax
call fcn.00478ba0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00444470
add esp, 0xc
or esi, 0xffffffff
jmp 0x443d70