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

Disassembly:
sub esp, 0x124
mov eax, dword [0x1008f400]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
mov ebp, dword [esp + 0x130]
push esi
push edi
mov dword [esp + 0x10], 0
mov edi, dword [ebp + 0x18]
lea eax, [edi + 0x430]
push eax
call fcn.10024f90
push dword [edi + 0x464]
lea ebx, [eax + 4]
call dword [0x1008f004]
mov eax, dword [edi + 0x490]
add esp, 8
mov dword [edi + 0x464], 0
test eax, eax
jne 0x1004f11d
cmp dword [esp + 0x13c], 0xe5
jne 0x1004f10e
push 0x28
push ebx
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
je 0x1004f0fb
mov bl, byte [eax + 1]
cmp byte [eax + 2], bl
jne 0x1004f0fb
cmp byte [eax + 3], bl
jne 0x1004f0fb
lea ecx, [eax + 4]
mov al, byte [ecx]
sub al, 0x30
cmp al, 9
ja 0x1004f0fb
push 0xa
lea eax, [esp + 0x18]
push eax
push ecx
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp byte [ecx], bl
jne 0x1004f0fb
cmp eax, 0xffff
jbe 0x1004f0ca
push str.Illegal_port_number_in_EPSV_reply
push ebp
call fcn.10031050
add esp, 8
jmp 0x1004f42f
push edi
mov word [edi + 0x49c], ax
call fcn.1004e0c0
push eax
call dword [0x1008f00c]
mov ecx, eax
add esp, 8
mov dword [edi + 0x464], ecx
test ecx, ecx
jne 0x1004f21f
mov eax, 0x1b
jmp 0x1004f434
push str.Weirdly_formatted_EPSV_reply
push ebp
call fcn.10031050
add esp, 8
jmp 0x1004f42f
push edi
push ebp
call fcn.1004e1c0
add esp, 8
jmp 0x1004f434
cmp eax, 1
mov eax, dword [esp + 0x13c]
jne 0x1004f420
cmp eax, 0xe3
jne 0x1004f420
cmp byte [ebx], 0
je 0x1004f1c8
mov eax, ebx
xor esi, esi
test esi, esi
je 0x1004f14f
cmp byte [eax], 0x2c
jne 0x1004f1be
inc eax
mov cl, byte [eax]
cmp cl, 0x30
jl 0x1004f1be
cmp cl, 0x39
jg 0x1004f1be
push 0xa
lea ecx, [esp + 0x18]
push ecx
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
add esp, 0xc
cmp eax, 0xff
ja 0x1004f1be
mov dword [esp + esi*4 + 0x18], eax
inc esi
mov eax, dword [esp + 0x14]
cmp esi, 6
jl 0x1004f145
cmp byte [ebx], 0
je 0x1004f1c8
cmp byte [ebp + 0x6af], 0
je 0x1004f1e0
push dword [edi + 0x30]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push str.Skip__u._u._u._u_for_data_connection__reuse__s_instead
push ebp
call fcn.10031120
push edi
call fcn.1004e0c0
push eax
call dword [0x1008f00c]
add esp, 0x24
jmp 0x1004f1fd
inc ebx
cmp byte [ebx], 0
jne 0x1004f141
push str.Couldnt_interpret_the_227_response
push ebp
call fcn.10031050
add esp, 8
mov eax, 0xe
jmp 0x1004f434
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push str._u._u._u._u
call fcn.100365d0
add esp, 0x14
mov ecx, eax
mov dword [edi + 0x464], ecx
test ecx, ecx
je 0x1004f0f1
mov eax, dword [esp + 0x28]
shl eax, 8
add eax, dword [esp + 0x2c]
mov word [edi + 0x49c], ax
cmp byte [edi + 0x245], 0
je 0x1004f290
cmp byte [edi + 0x241], 0
je 0x1004f236
mov esi, dword [edi + 0x58]
jmp 0x1004f239
mov esi, dword [edi + 0x78]
lea eax, [esp + 0x10]
push eax
push 0
push dword [edi + 0xec]
push esi
push ebp
call fcn.1003a750
add esp, 0x14
cmp eax, 1
jne 0x1004f263
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.100254f0
add esp, 8
mov ecx, dword [esp + 0x10]
movzx ebx, word [edi + 0xec]
test ecx, ecx
jne 0x1004f340
push ebx
push esi
push str.Cant_resolve_proxy_host__s:_hu
push ebp
call fcn.10031050
add esp, 0x10
mov eax, 5
jmp 0x1004f434
cmp byte [edi + 0x257], 0
mov edx, ecx
je 0x1004f2e6
cmp byte [edi + 0x247], 0
jne 0x1004f2e6
cmp byte [ecx], 0
jne 0x1004f2e6
push edi
push ebp
call fcn.10030a70
push dword [edi + 0x464]
call dword [0x1008f004]
push edi
mov dword [edi + 0x464], 0
call fcn.1004e0c0
push eax
call dword [0x1008f00c]
mov edx, eax
add esp, 0x14
mov dword [edi + 0x464], edx
test edx, edx
je 0x1004f0f1
lea eax, [esp + 0x10]
push eax
movzx eax, word [edi + 0x49c]
push 0
push eax
push edx
push ebp
call fcn.1003a750
add esp, 0x14
cmp eax, 1
jne 0x1004f312
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.100254f0
add esp, 8
mov ecx, dword [esp + 0x10]
movzx ebx, word [edi + 0x49c]
test ecx, ecx
jne 0x1004f340
push ebx
push dword [edi + 0x464]
push str.Cant_resolve_new_host__s:_hu
push ebp
call fcn.10031050
add esp, 0x10
mov eax, 0xf
jmp 0x1004f434
xor eax, eax
cmp byte [edi + 0x252], al
setne al
push eax
push ecx
push 1
push edi
push ebp
call fcn.10033580
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1004f38d
push dword [esp + 0x10]
push ebp
call fcn.1003acf0
add esp, 8
cmp dword [edi + 0x490], 0
jne 0x1004f386
cmp dword [esp + 0x13c], 0xe5
je 0x1004f10e
mov eax, esi
jmp 0x1004f434
cmp byte [ebp + 0x6bb], 0
je 0x1004f3c9
mov esi, dword [edi + 0x464]
lea eax, [esp + 0x30]
push 0x100
push eax
mov eax, dword [esp + 0x18]
push dword [eax]
call fcn.1003a700
movzx eax, bx
push eax
lea eax, [esp + 0x40]
push eax
push esi
push str.Connecting_to__s___s__port__d
push ebp
call fcn.10031120
add esp, 0x20
push dword [esp + 0x10]
push ebp
call fcn.1003acf0
push dword [edi + 0x3c]
call dword [0x1008f004]
mov dword [edi + 0x3c], 0
mov ax, word [edi + 0x49c]
mov word [edi + 0x4ce], ax
push dword [edi + 0x464]
call dword [0x1008f00c]
add esp, 0x10
mov dword [edi + 0x3c], eax
test eax, eax
je 0x1004f0f1
mov byte [edi + 0x24d], 1
mov eax, dword [ebp + 0x18]
mov byte [eax + 0x49e], 0
xor eax, eax
jmp 0x1004f434
push eax
push str.Bad_PASV_EPSV_response:__03d
push ebp
call fcn.10031050
add esp, 0xc
mov eax, 0xd
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10071a6b
add esp, 0x124
ret