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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x5c]
push edi
push 2
mov edi, dword [esi]
mov dword [esp + 0x18], esi
push edi
call fcn.004596e0
add esp, 8
test eax, eax
je 0x457b28
or esi, 0xffffffff
jmp 0x457ef4
mov ebx, dword [edi + 8]
test ebx, ebx
jne 0x457b52
mov eax, dword [edi + 0x1c]
cmp eax, 2
je 0x457b3c
cmp eax, 1
jne 0x457b52
mov eax, dword [esp + 0x64]
push eax
push esi
call fcn.00458030
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ebp, dword [esp + 0x64]
mov ecx, dword [edi + 0x6c]
mov esi, dword [edi + 0x4c]
mov dword [esp + 0x14], ecx
mov eax, dword [ebp + 4]
test eax, eax
je 0x457b70
mov edx, dword [ebp + 8]
mov dword [esp + 0x1c], edx
jmp 0x457b7e
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.0044c880
add esp, 8
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
test esi, esi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0x10
je 0x457b9f
mov eax, dword [esi + 4]
mov dword [esp + 0x24], eax
test ebx, ebx
jne 0x457bed
push 0x24
push 0x542674
call fcn.00466fd0
mov ebx, eax
add esp, 8
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x457bd9
push str.iso8859_1
push 0
call fcn.00442ef0
push 0
push 0x4582e0
mov dword [ebx + 0x20], eax
call fcn.00466a60
add esp, 0x10
mov ebx, dword [ebx + 0x20]
test ebx, ebx
jne 0x457bed
push str.attempted_gets_on_binary_channel_where_no_iso8859_1_encoding_available
call fcn.0047c670
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 0x457c66
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x38]
push edx
push eax
call fcn.00458310
add esp, 8
test eax, eax
jne 0x457f0b
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 0x457c90
cmp esi, eax
mov ecx, esi
jae 0x457c90
movsx ebx, byte [ecx]
cmp ebx, edx
je 0x457c82
inc ecx
cmp ecx, eax
jb 0x457c74
jmp 0x457c8c
mov eax, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x60], eax
mov ebx, dword [esp + 0x18]
mov ecx, dword [edi + 0x1c]
cmp ecx, 3
ja case.default.0x457c9c
jmp dword [ecx*4 + 0x458014]
cmp esi, eax
jae case.default.0x457c9c
cmp byte [esi], 0xa
je 0x457e5a
inc esi
cmp esi, eax
jb 0x457cab
jmp case.default.0x457c9c
cmp esi, eax
jae case.default.0x457c9c
cmp byte [esi], 0xd
je 0x457e5a
inc esi
cmp esi, eax
jb 0x457cc6
jmp case.default.0x457c9c
cmp esi, eax
jae case.default.0x457c9c
cmp byte [esi], 0xd
jne 0x457d3d
inc esi
cmp esi, eax
jb 0x457d34
cmp esi, ebx
je 0x457d2c
mov ecx, dword [ebp + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x38]
sub esi, ecx
push edx
push eax
mov ebx, esi
call fcn.00458310
add esp, 8
test eax, eax
jne 0x457f0b
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 0x457f6f
cmp byte [esi], 0xa
je 0x457f76
inc esi
cmp esi, eax
jb 0x457ce1
jmp case.default.0x457c9c
mov ecx, dword [edi + 4]
mov edx, esi
test ch, 0x10
mov ebp, 1
je 0x457e09
and ch, 0xef
mov dword [edi + 4], ecx
mov eax, dword [esp + 0x60]
cmp edx, eax
jae 0x457e05
cmp byte [edx], 0xa
jne 0x457e05
mov eax, dword [esp + 0x44]
push 0
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [esp + 0x40]
push 4
push edx
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0x5c]
lea esi, [eax + 4]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esi]
push ecx
mov ecx, dword [esp + 0x60]
lea eax, [edx + eax + 0x10]
push eax
push ecx
push 0
call fcn.00443570
mov edx, dword [esp + 0x4c]
mov eax, dword [esi]
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]
mov dword [esp + 0x78], edx
sub ecx, eax
lea edx, [eax + 1]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [esp + 0x98]
add esp, 0x38
dec eax
mov dword [esp + 0x60], eax
mov esi, dword [esp + 0x10]
cmp esi, eax
jae 0x457e22
mov cl, byte [esi]
cmp cl, 0xd
je 0x457f81
cmp cl, 0xa
je 0x457e5f
inc esi
cmp esi, eax
jb 0x457e0d
mov ebp, dword [esp + 0x64]
test ebx, ebx
je 0x457e43
mov dword [esp + 0x60], ebx
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0x10]
or ch, 6
or al, 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 0x457fda
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x457c39
mov ebp, 1
mov ebx, dword [esp + 0x44]
test ebx, ebx
jne 0x457e74
push str.Tcl_GetsObj:_gotEOL_reached_with_bufPtrNULL
call fcn.0047c670
add esp, 4
mov edx, dword [esp + 0x48]
lea ecx, [edi + 0xc]
lea eax, [esp + 0x54]
mov dword [ecx], edx
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x50]
push 0
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.00443570
mov edx, dword [esp + 0x78]
mov eax, dword [ebx + 4]
add eax, edx
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x90]
sub esi, dword [eax + 4]
push esi
push eax
call fcn.00451430
mov eax, dword [esp + 0x48]
push eax
call fcn.004585b0
mov edx, dword [edi + 4]
add esp, 0x38
and dh, 0xf7
mov dword [edi + 4], edx
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
sub esi, ebp
add esi, eax
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0045ab30
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov esi, dword [edi + 0x4c]
test esi, esi
jne 0x457f1f
push str.Tcl_GetsObj:_restore_reached_with_bufPtrNULL
call fcn.0047c670
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [esi + 4], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x457f3b
mov dword [eax + 4], 0x10
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x457f2d
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004585b0
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.00451430
mov eax, dword [edi + 4]
add esp, 0xc
or ah, 0x40
or esi, 0xffffffff
mov dword [edi + 4], eax
jmp 0x457ef4
xor ebp, ebp
jmp 0x457e5f
dec esi
mov ebp, 2
jmp 0x457e5f
inc esi
cmp esi, eax
jne 0x457fca
cmp esi, ebx
je 0x457fb7
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x38]
lea eax, [esp + 0x60]
mov ecx, dword [ebx + 4]
push edx
sub esi, ecx
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00458500
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x6c]
add esp, 0xc
add esi, edx
cmp esi, eax
jb 0x457fca
mov eax, dword [edi + 4]
dec esi
or ah, 0x10
mov dword [edi + 4], eax
jmp 0x457e5f
cmp byte [esi], 0xa
jne 0x457fd4
mov ebp, 2
dec esi
jmp 0x457e5f
mov ecx, dword [esp + 0x64]
xor ebp, ebp
mov esi, eax
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x1c]
add edx, ecx
cmp eax, edx
jne 0x457e5f
mov eax, dword [esp + 0x64]
push ecx
push eax
call fcn.00451430
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004585b0
add esp, 0xc
or esi, 0xffffffff
jmp 0x457ef4