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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, eax
mov ebx, dword [esi]
lea eax, [esi + 0x3c8]
mov dword [esp + 0x20], eax
mov eax, dword [eax + 0x64]
xor ecx, ecx
cmp eax, ecx
push edi
mov dword [esp + 0x18], ecx
lea edi, [ebx + 0x528]
jne 0x410e42
cmp edx, 0xe5
jne 0x410e42
push 0x28
push edi
call fcn.0041fd60
mov edi, eax
add esp, 8
test edi, edi
je 0x410e28
lea eax, [esp + 0x13]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1a]
push edx
lea eax, [esp + 0x1d]
push eax
lea ecx, [esp + 0x20]
push ecx
inc edi
push str._c_c_c_u_c
push edi
call fcn.00420375
add esp, 0x1c
cmp eax, 5
jne 0x410e28
mov cl, byte [esp + 0x10]
mov eax, 1
cmp byte [esp + eax + 0x10], cl
jne 0x410e28
inc eax
cmp eax, 4
jl 0x410db2
test edi, edi
je 0x410e28
mov eax, dword [esi + 0x1c0]
test eax, eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
jne 0x410e0b
mov eax, dword [ebx + 0x248]
cmp eax, 5
je 0x410e0b
cmp eax, 7
je 0x410e0b
cmp eax, 4
je 0x410e0b
cmp eax, 6
je 0x410e0b
lea eax, [esi + 0x38]
push eax
push 0x432684
lea ecx, [esp + 0x48]
push 0x30
push ecx
call fcn.00404e30
add esp, 0x10
jmp 0x410f78
mov edx, dword [esi + 0x78]
push edx
push 0x432684
lea eax, [esp + 0x48]
push 0x30
push eax
call fcn.00404e30
add esp, 0x10
jmp 0x410f78
push str.Weirdly_formatted_EPSV_reply
push ebx
call fcn.00403490
add esp, 8
mov eax, 0xd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4111e5
cmp edx, 0xe3
jne 0x4111e5
cmp byte [edi], 0
je 0x410ea0
lea esp, [esp]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x3c]
push eax
push str._d__d__d__d__d__d
push edi
call fcn.00420375
add esp, 0x20
cmp eax, 6
je 0x410e9b
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410e60
jmp 0x410ea0
cmp byte [edi], 0
jne 0x410eba
push str.Couldnt_interpret_the_227_response
push ebx
call fcn.00403490
add esp, 8
mov eax, 0xe
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x304]
test eax, eax
je 0x410f3f
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
lea edi, [esi + 0x38]
push edi
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
push str.Skips__d._d._d._d_for_data_connection__uses__s_instead_n
push ebx
call fcn.004033d0
mov eax, dword [esi + 0x1c0]
add esp, 0x1c
test eax, eax
jne 0x410f25
mov eax, dword [ebx + 0x248]
cmp eax, 5
je 0x410f25
cmp eax, 7
je 0x410f25
cmp eax, 4
je 0x410f25
cmp eax, 6
je 0x410f25
push edi
push 0x432684
lea edx, [esp + 0x48]
push 0x30
push edx
call fcn.00404e30
add esp, 0x10
jmp 0x410f67
mov eax, dword [esi + 0x78]
push eax
push 0x432684
lea ecx, [esp + 0x48]
push 0x30
push ecx
call fcn.00404e30
add esp, 0x10
jmp 0x410f67
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
push str._d._d._d._d
lea eax, [esp + 0x54]
push 0x30
push eax
call fcn.00404e30
add esp, 0x1c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
shl eax, 8
add eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x364]
test eax, eax
je 0x410ff4
cmp byte [eax], 0
je 0x410ff4
mov edx, dword [esi + 0x90]
mov eax, dword [esi + 0x88]
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
push esi
call fcn.00402260
add esp, 0x10
cmp eax, 1
jne 0x410fb6
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.00406a20
add esp, 8
mov eax, dword [esp + 0x18]
xor ecx, ecx
test eax, eax
mov cx, word [esi + 0x90]
mov dword [esp + 0x10], ecx
jne 0x411050
mov eax, dword [esi + 0x88]
movzx edx, cx
push edx
push eax
push str.Cant_resolve_proxy_host__s:_hu
push ebx
call fcn.00403490
add esp, 0x10
mov eax, 0xf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx edi, word [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edi
lea edx, [esp + 0x48]
push edx
push esi
call fcn.00402260
add esp, 0x10
cmp eax, 1
jne 0x411020
lea eax, [esp + 0x18]
push eax
push esi
call fcn.00406a20
add esp, 8
mov eax, dword [esp + 0x18]
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
jne 0x411050
push edi
lea edx, [esp + 0x44]
push edx
push str.Cant_resolve_new_host__s:_hu
push ebx
call fcn.00403490
add esp, 0x10
mov eax, 0xf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x3c]
push edx
lea ecx, [esi + 0x12c]
push ecx
push eax
push esi
call fcn.00404490
mov edx, dword [esp + 0x2c]
push edx
push ebx
mov edi, eax
call fcn.00402430
add esp, 0x1c
test edi, edi
je 0x4110d8
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x64]
test ecx, ecx
jne 0x4111dc
cmp dword [ebp + 8], 0xe5
jne 0x4111dc
push str.got_positive_EPSV_response__but_cant_connect._Disabling_EPSV_n
push ebx
call fcn.004033d0
xor edi, edi
mov dword [esi + 0x1d0], edi
mov esi, dword [esp + 0x2c]
push edi
push str.PASV
push esi
mov dword [ebx + 0x8550], edi
call fcn.00419870
add esp, 0x14
cmp eax, edi
jne 0x411232
inc dword [esi + 0x64]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x1b4], ecx
mov eax, dword [ebx + 0x2cc]
test eax, eax
je 0x411104
movzx edx, word [esp + 0x10]
mov ecx, dword [esp + 0x38]
push edx
lea eax, [esp + 0x44]
push eax
push esi
call fcn.004102a0
add esp, 0xc
mov eax, dword [ebx + 0x248]
cmp eax, 7
ja case.0x41110f.2
jmp dword [eax*4 + 0x41123c]
movzx ecx, word [esp + 0x14]
mov eax, dword [esi + 0x108]
push esi
push 1
push ecx
mov ecx, dword [esi + 0x104]
lea edx, [esp + 0x4c]
push edx
push eax
push ecx
call fcn.004161f0
add esp, 0x18
mov edi, eax
jmp case.0x41110f.0
push 0
jmp 0x411144
push 1
movzx edx, word [esp + 0x18]
mov ecx, dword [esi + 0x104]
push esi
push 1
push edx
lea eax, [esp + 0x50]
push eax
push ecx
call fcn.00415d70
add esp, 0x18
mov edi, eax
jmp case.0x41110f.0
push str.unknown_proxytype_option_given
push ebx
call fcn.00403490
add esp, 8
mov edi, 7
mov eax, dword [esi + 0x1c0]
test eax, eax
je 0x4111d2
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x4111d2
mov edx, dword [ebx + 0x8644]
xor eax, eax
mov ecx, 0x18
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x20], edx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x78]
push 1
push esi
mov dword [ebx + 0x8644], eax
call fcn.0041ab90
mov edi, eax
mov eax, dword [esp + 0x2c]
add esp, 0x10
test edi, edi
mov dword [ebx + 0x8644], eax
jne 0x4111dc
mov dword [esi + 0x438], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, ecx
jne 0x41121e
push str.disabling_EPSV_usage_n
push ebx
mov dword [esi + 0x1d0], ecx
call fcn.004033d0
mov esi, dword [esp + 0x2c]
push 0
push str.PASV
push esi
call fcn.00419870
add esp, 0x14
test eax, eax
jne 0x411232
inc dword [esi + 0x64]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edx
push str.Bad_PASV_EPSV_response:__03d
push ebx
call fcn.00403490
add esp, 0xc
mov eax, 0xd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret