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

Disassembly:
sub esp, 0x34
mov eax, dword [0x4953c0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
mov esi, dword [esp + 0x44]
push edi
mov edi, dword [esp + 0x50]
mov dword [esp + 0x1c], ebx
push dword [esi + 0x7c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0
mov byte [esp + 0x16], 0
call fcn.00405980
push dword [esi + 0x7c]
mov dword [esp + 0x30], eax
call fcn.004059a0
mov byte [edi], 0
add esp, 8
mov dword [ebx], 0
cmp dword [esi + 0xcc4], 0
mov dword [esp + 0x2c], eax
jne 0x4129ba
mov ebx, 3
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00458bde
add esp, 0x34
ret
push esi
call fcn.00412570
mov edi, eax
add esp, 4
test edi, edi
jne 0x4129e3
mov ebx, 0x1b
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00458bde
add esp, 0x34
ret
push edi
push esi
mov dword [ebx], edi
call fcn.00414540
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x413158
mov eax, dword [esi + 0x5f4]
test eax, eax
je 0x412a17
push eax
call dword [0x49500c]
add esp, 4
mov dword [edi + 0xcc], eax
test eax, eax
je 0x4129c9
mov eax, dword [esi + 0x5dc]
test eax, eax
je 0x412a35
push eax
call dword [0x49500c]
add esp, 4
mov dword [edi + 0xd0], eax
test eax, eax
je 0x4129c9
mov eax, dword [esi + 0x5e0]
test eax, eax
je 0x412a63
push eax
call dword [0x49500c]
add esp, 4
mov dword [edi + 0x40c], eax
test eax, eax
je 0x4129c9
mov al, byte [esi + 0x6d7]
mov byte [edi + 0x1c3], al
push edi
push esi
call fcn.004132e0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x413158
mov eax, dword [edi + 0x1cc]
test byte [eax + 0x4c], 1
je 0x412a92
cmp byte [edi + 0x1a8], bl
je 0x412a92
mov byte [edi + 0x1ab], 1
movzx eax, word [esi + 0x160]
test ax, ax
je 0x412ade
cmp byte [esi + 0xd78], 0
je 0x412ade
push eax
push 0x47d7fc
mov dword [edi + 0x424], eax
lea eax, [esp + 0x38]
push 0x10
push eax
call fcn.0041a980
push 0
lea eax, [esp + 0x44]
push eax
push 6
push dword [esi + 0xca0]
call fcn.0043f310
add esp, 0x20
test eax, eax
jne 0x4129c9
push edi
push esi
call fcn.00413910
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x413158
mov eax, dword [edi + 0x1c8]
mov ecx, str.anonymous
mov ebp, str.ftp_example.com
test byte [eax + 0x4c], 0x20
je 0x412b10
cmp dword [esi + 0xd60], ebx
je 0x412b17
mov ecx, 0x47d134
mov ebp, ecx
cmp dword [edi + 0xc0], ebx
jne 0x412b37
push ecx
call dword [0x49500c]
add esp, 4
mov dword [edi + 0xc0], eax
test eax, eax
je 0x4129c9
cmp dword [edi + 0xc4], ebx
jne 0x412b59
push ebp
call dword [0x49500c]
add esp, 4
mov dword [edi + 0xc4], eax
test eax, eax
mov ecx, 0x1b
cmove ebx, ecx
test ebx, ebx
jne 0x413158
push dword [esi + 0x3a8]
push edi
push esi
call fcn.00413d70
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x413158
cmp byte [edi + 0x1a8], al
je 0x412b97
lea eax, [edi + 0x70]
push eax
call fcn.00441ff0
add esp, 4
test eax, eax
jne 0x41315a
cmp byte [edi + 0x1a9], 0
je 0x412bb4
lea eax, [edi + 0x50]
push eax
call fcn.00441ff0
add esp, 4
test eax, eax
jne 0x41315a
cmp byte [edi + 0x1b1], 0
je 0x412bf2
lea eax, [edi + 0x40]
push eax
call fcn.00441ff0
add esp, 4
test eax, eax
jne 0x41315a
cmp byte [edi + 0x1b1], al
je 0x412bf2
push dword [edi + 0x30]
push dword [edi + 0x48]
call fcn.0041c0c0
add esp, 8
test eax, eax
je 0x412bf2
mov byte [edi + 0x1b1], 0
mov cl, byte [edi + 0x1b2]
test cl, cl
je 0x412c13
mov eax, dword [edi + 0x428]
cmp eax, dword [edi + 0x424]
jne 0x412c13
mov byte [edi + 0x1b2], 0
xor cl, cl
cmp byte [edi + 0x1b1], 0
jne 0x412c20
test cl, cl
je 0x412c30
cmp byte [edi + 0x1a8], 0
je 0x412c30
mov byte [edi + 0x1ab], 1
mov eax, dword [edi + 0x1c8]
mov ecx, eax
mov edx, dword [eax + 4]
test edx, edx
je 0x412c58
push edi
push esi
call edx
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x413158
mov eax, dword [edi + 0x1c8]
mov ecx, eax
cmp dword [edi + 0x420], 0
jge 0x412c6a
mov eax, dword [eax + 0x40]
mov dword [edi + 0x420], eax
test byte [ecx + 0x4c], 0x10
je 0x412d1b
push 0xffffffffffffffff
push 0
push edi
push esi
call fcn.00417890
mov eax, dword [edi + 0x1c8]
lea ecx, [esp + 0x22]
push ecx
push esi
mov eax, dword [eax + 0x14]
call eax
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x412cfc
push edi
push esi
call fcn.00405440
push esi
call fcn.0040dcf0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x413158
push esi
call fcn.00414f50
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x412ce9
mov eax, dword [edi + 0x1c8]
push 0
push ebx
push esi
mov eax, dword [eax + 0xc]
call eax
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00458bde
add esp, 0x34
ret
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call fcn.0041e2a0
add esp, 0x18
push edi
push esi
call fcn.00411ee0
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00458bde
add esp, 0x34
ret
mov dword [edi + 0x110], 0x415ed0
mov dword [edi + 0x118], fcn.00415f20
mov dword [edi + 0x114], 0x415ed0
mov dword [edi + 0x11c], fcn.00415f20
mov al, byte [esi + 0x6d0]
push esi
mov byte [edi + 0x1c0], al
call fcn.00410010
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x413158
lea eax, [esp + 0x30]
push eax
call fcn.0040ab10
add esp, 4
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x30], xmm0
cmp dword [esi + 0x84], ebx
je 0x412d8c
push 2
push 5
push esi
call fcn.0041cf10
add esp, 0xc
mov ecx, dword [esi + 0x880]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmm0, xmmword [ecx + 0x30]
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [esp + 0x50]
movups xmmword [eax], xmm0
call fcn.0040abc0
add esp, 0x20
mov ebp, eax
cmp dword [esi + 0x84], 0
mov ebx, edx
je 0x412dcb
push 5
push esi
call fcn.0041cf50
add esp, 8
test ebx, ebx
jl 0x412e7e
jg 0x412de1
cmp ebp, 0x3e8
jb 0x412e7e
push 0x412790
lea eax, [esp + 0x24]
mov dword [esp + 0x24], esi
push eax
push dword [esi + 0x880]
mov dword [esp + 0x30], 0
push esi
call fcn.0040e2f0
add esp, 0x10
test al, al
je 0x412e45
nop word [eax + eax]
push 1
push dword [esp + 0x28]
push esi
call fcn.0040e410
push 1
push dword [esp + 0x34]
push esi
call fcn.00411bc0
push 0x412790
lea eax, [esp + 0x3c]
push eax
push dword [esi + 0x880]
push esi
call fcn.0040e2f0
add esp, 0x28
test al, al
jne 0x412e10
cmp dword [esi + 0x84], 0
je 0x412e5b
push 2
push 5
push esi
call fcn.0041cf10
add esp, 0xc
mov eax, dword [esi + 0x880]
movups xmm0, xmmword [esp + 0x30]
movups xmmword [eax + 0x30], xmm0
cmp dword [esi + 0x84], 0
je 0x412e7e
push 5
push esi
call fcn.0041cf50
add esp, 8
cmp byte [esi + 0x6c6], 0
je 0x412e94
cmp dword [esi + 0x93c], 0
je 0x4130a8
cmp byte [esi + 0x6a5], 0
jne 0x4130a8
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x17]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
call fcn.00410df0
add esp, 0x14
test al, al
je 0x4130a8
cmp dword [edi + 0xc0], 0
mov ebx, dword [esp + 0x14]
je 0x412f2a
push dword [ebx + 0xc0]
call dword [0x495004]
push dword [ebx + 0xc4]
mov dword [ebx + 0xc0], 0
call dword [0x495004]
mov dword [ebx + 0xc4], 0
add esp, 8
mov eax, dword [edi + 0xc0]
mov dword [ebx + 0xc0], eax
mov eax, dword [edi + 0xc4]
mov dword [ebx + 0xc4], eax
mov dword [edi + 0xc0], 0
mov dword [edi + 0xc4], 0
mov al, byte [edi + 0x1aa]
mov byte [ebx + 0x1aa], al
test al, al
je 0x412fd3
push dword [ebx + 0x88]
call dword [0x495004]
push dword [ebx + 0x68]
mov dword [ebx + 0x88], 0
call dword [0x495004]
push dword [ebx + 0x8c]
mov dword [ebx + 0x68], 0
call dword [0x495004]
push dword [ebx + 0x6c]
mov dword [ebx + 0x8c], 0
call dword [0x495004]
mov dword [ebx + 0x6c], 0
add esp, 0x10
mov eax, dword [edi + 0x88]
mov dword [ebx + 0x88], eax
mov eax, dword [edi + 0x68]
mov dword [ebx + 0x68], eax
mov eax, dword [edi + 0x8c]
mov dword [ebx + 0x8c], eax
mov eax, dword [edi + 0x6c]
mov dword [ebx + 0x6c], eax
mov dword [edi + 0x88], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x6c], 0
push dword [ebx + 0x28]
call dword [0x495004]
push dword [ebx + 0x40]
mov dword [ebx + 0x28], 0
call dword [0x495004]
mov dword [ebx + 0x40], 0
movups xmm0, xmmword [edi + 0x28]
movups xmmword [ebx + 0x28], xmm0
mov dword [edi + 0x28], 0
movups xmm0, xmmword [edi + 0x40]
mov dword [edi + 0x2c], 0
movups xmmword [ebx + 0x40], xmm0
mov eax, dword [edi + 0x428]
mov dword [edi + 0x40], 0
push dword [ebx + 0x38]
mov dword [ebx + 0x428], eax
mov eax, dword [edi + 0x424]
mov dword [ebx + 0x424], eax
call dword [0x495004]
mov dword [ebx + 0x38], 0
mov eax, dword [edi + 0x38]
mov dword [ebx + 0x38], eax
push edi
mov dword [edi + 0x38], 0
push esi
mov byte [ebx + 0x1af], 1
call fcn.004127c0
mov eax, dword [esp + 0x30]
add esp, 0x14
mov dword [eax], ebx
cmp dword [ebx + 0x58], 0
je 0x41306f
mov eax, dword [ebx + 0x5c]
jmp 0x41307d
cmp dword [ebx + 0x78], 0
je 0x41307a
mov eax, dword [ebx + 0x7c]
jmp 0x41307d
mov eax, dword [ebx + 0x34]
cmp byte [ebx + 0x1ad], 0
mov ecx, str.host
push eax
mov eax, str.proxy
cmove eax, ecx
push eax
push str.Re_using_existing_connection_with__s__s
push esi
call fcn.00416330
add esp, 0x10
mov edi, ebx
jmp 0x413239
mov eax, dword [edi + 0x1c8]
test dword [eax + 0x4c], 0x100
je 0x4130c7
cmp byte [esi + 0x6d1], 0
je 0x4130c7
mov byte [edi + 0x1c1], 1
cmp byte [esp + 0x12], 0
jne 0x413134
push dword [esi + 0x880]
push edi
push esi
call fcn.0040e240
mov ebp, dword [esp + 0x34]
add esp, 0xc
test ebp, ebp
je 0x41316d
test eax, eax
je 0x41316d
cmp dword [eax + 4], ebp
jb 0x41316d
push eax
push esi
call fcn.0040e050
add esp, 8
mov ebx, eax
cmp dword [esi + 0x84], 0
je 0x413113
push 5
push esi
call fcn.0041cf50
add esp, 8
test ebx, ebx
je 0x413125
push 0
push ebx
push esi
call fcn.00411bc0
add esp, 0xc
jmp 0x413181
push ebp
push str.No_more_connections_allowed_to_host:__zu
push esi
call fcn.00416330
add esp, 0xc
push str.No_connections_available.
push esi
call fcn.00416330
push edi
push esi
call fcn.004127c0
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ebx, 0x59
mov dword [eax], 0
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00458bde
add esp, 0x34
ret
cmp dword [esi + 0x84], 0
je 0x413181
push 5
push esi
call fcn.0041cf50
add esp, 8
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x4131b3
push esi
call fcn.0040e700
add esp, 4
cmp eax, ebx
jb 0x4131b3
push esi
call fcn.0040e100
add esp, 4
test eax, eax
je 0x413297
push 0
push eax
push esi
call fcn.00411bc0
add esp, 0xc
push edi
push esi
call fcn.0040fe70
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x413158
push edi
push esi
call fcn.00405440
push esi
call fcn.0040dcf0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x413158
test byte [esi + 0x974], 0x28
je 0x413208
cmp byte [esi + 0x97c], al
je 0x413208
push str.NTLM_picked_AND_auth_done_set__clear_picked
push esi
call fcn.00416330
add esp, 8
mov dword [esi + 0x974], ebx
mov byte [esi + 0x97c], bl
test byte [esi + 0x984], 0x28
je 0x413239
cmp byte [esi + 0x98c], 0
je 0x413239
push str.NTLM_proxy_picked_AND_auth_done_set__clear_picked
push esi
call fcn.00416330
add esp, 8
mov dword [esi + 0x984], 0
mov byte [esi + 0x98c], 0
push edi
push esi
call fcn.00411ee0
push esi
call fcn.00414f50
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x413158
mov eax, dword [esi + 0x174]
mov dword [edi + 0x22c], eax
mov eax, dword [esi + 0x1c4]
mov dword [edi + 0x230], eax
mov eax, dword [esp + 0x18]
cmp byte [edi + 0x1af], bl
je 0x4132aa
push esi
mov byte [eax], bl
call fcn.00415c00
add esp, 4
mov ebx, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00458bde
add esp, 0x34
ret
push str.No_connections_available_in_cache
push esi
call fcn.00416330
add esp, 8
jmp 0x413134
push eax
push edi
push esi
call fcn.00414c90
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x413158
push esi
call fcn.00415c00
mov ecx, dword [esp + 0x44]
add esp, 4
mov ebx, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00458bde
add esp, 0x34
ret