Function at 0x527240
Capabilities:
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
mov eax, dword [0x640844]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x3c]
push edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x24], ebx
push dword [esi + 0x78]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], 0
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
call fcn.0051bca0
push dword [esi + 0x78]
mov dword [esp + 0x1c], eax
call fcn.0051bcc0
mov byte [edi], 0
add esp, 8
mov dword [ebx], 0
cmp dword [esi + 0xaa0], 0
mov dword [esp + 0x20], eax
jne 0x5272bd
pop edi
mov ebx, 3
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004ed0cc
add esp, 0x30
ret
push esi
call fcn.005269f0
mov edi, eax
add esp, 4
test edi, edi
jne 0x5272e5
pop edi
mov ebx, 0x1b
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004ed0cc
add esp, 0x30
ret
push edi
push esi
mov dword [ebx], edi
call fcn.00528e50
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x527a65
mov eax, dword [esi + 0xa10]
test eax, eax
je 0x527319
push eax
call dword [0x6412bc]
add esp, 4
mov dword [edi + 0x17c], eax
test eax, eax
je 0x5272cc
mov eax, dword [esi + 0xa20]
test eax, eax
je 0x527337
push eax
call dword [0x6412bc]
add esp, 4
mov dword [edi + 0x180], eax
test eax, eax
je 0x5272cc
mov eax, dword [esi + 0xa14]
test eax, eax
je 0x527371
push eax
call dword [0x6412bc]
add esp, 4
mov dword [edi + 0x56c], eax
test eax, eax
je 0x5272cc
mov eax, dword [esi + 0xa9c]
shr eax, 0x16
xor eax, dword [edi + 0x570]
and eax, 1
xor dword [edi + 0x570], eax
push edi
call fcn.00527c80
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x527a65
mov eax, dword [edi + 0x2cc]
test byte [eax + 0x44], 1
je 0x5273a5
mov eax, dword [edi + 0x29c]
test al, 0x40
je 0x5273a5
or eax, 0x8000
mov dword [edi + 0x29c], eax
mov eax, dword [esi + 0x5b0]
test eax, eax
je 0x5273f2
test byte [esi + 0xfa4], 0x10
je 0x5273f2
movzx eax, ax
push eax
push 0x5e273c
mov dword [edi + 0x100], eax
lea eax, [esp + 0x30]
push 0x10
push eax
call fcn.00539530
push 0
lea eax, [esp + 0x3c]
push eax
push 6
push dword [esi + 0xf74]
call fcn.00550270
add esp, 0x20
test eax, eax
jne 0x5272cc
push ebp
lea eax, [edi + 0x178]
push eax
lea ecx, [edi + 0x174]
push ecx
lea ebp, [edi + 0x170]
push ebp
push edi
push esi
call fcn.00528500
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x527a64
mov eax, dword [edi + 0x2c8]
mov ecx, str.anonymous
mov dword [esp + 0x20], str.ftp_example.com
test byte [eax + 0x44], 0x20
je 0x527441
test dword [edi + 0x29c], 0x100
je 0x52744a
mov ecx, 0x5de8d4
mov dword [esp + 0x20], ecx
cmp dword [ebp], ebx
jne 0x527464
push ecx
call dword [0x6412bc]
add esp, 4
mov dword [ebp], eax
test eax, eax
je 0x527837
mov eax, dword [edi + 0x174]
test eax, eax
jne 0x527488
push dword [esp + 0x20]
call dword [0x6412bc]
add esp, 4
mov dword [edi + 0x174], eax
test eax, eax
jne 0x527488
lea ebx, [eax + 0x1b]
cmp dword [ebp], 0
je 0x5274ae
test eax, eax
jne 0x5274ae
push 0x5de8d4
call dword [0x6412bc]
add esp, 4
mov dword [edi + 0x174], eax
test eax, eax
je 0x527837
test ebx, ebx
jne 0x527a64
push dword [esi + 0x818]
push edi
push esi
call fcn.00528910
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x527a64
lea eax, [edi + 0x94]
push eax
push edi
call fcn.00528480
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x527a64
test byte [edi + 0x29c], 8
lea ebp, [edi + 0x29c]
je 0x527513
lea eax, [edi + 0xac]
push eax
push edi
call fcn.00528480
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x527a64
test byte [ebp], 0x40
je 0x527533
lea eax, [edi + 0xdc]
push eax
push edi
call fcn.00528480
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x527a64
test byte [ebp], 0x80
je 0x527553
lea eax, [edi + 0xbc]
push eax
push edi
call fcn.00528480
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x527a64
test byte [ebp], 8
je 0x527575
push dword [edi + 0x9c]
push dword [edi + 0xb4]
call fcn.0052e360
add esp, 8
test eax, eax
je 0x527575
and dword [ebp], 0xfffffff7
mov ebx, dword [ebp]
mov edx, ebx
mov ecx, ebx
test bl, 0x10
je 0x527597
mov eax, dword [edi + 0x104]
cmp eax, dword [edi + 0x100]
jne 0x527597
and edx, 0xffffffef
mov dword [ebp], edx
mov ecx, edx
test dl, 0x18
je 0x5275ac
test dl, 0x40
je 0x5275ac
mov ecx, edx
or ecx, 0x8000
mov dword [ebp], ecx
mov eax, dword [edi + 0x2c8]
mov ebx, eax
mov edx, dword [eax + 4]
test edx, edx
je 0x5275d6
push edi
call edx
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x527a64
mov eax, dword [edi + 0x2c8]
mov ebx, eax
mov ecx, dword [ebp]
cmp dword [edi + 0xfc], 0
jge 0x5275e8
mov eax, dword [eax + 0x3c]
mov dword [edi + 0xfc], eax
mov dword [edi + 0x1d4], 0x52ad80
mov dword [edi + 0x1dc], 0x52aed0
mov dword [edi + 0x1d8], 0x52ad80
mov dword [edi + 0x1e0], 0x52aed0
mov eax, dword [esi + 0xa9c]
shl eax, 0xf
xor eax, ecx
and eax, 0x10000000
xor eax, ecx
mov dword [ebp], eax
test byte [ebx + 0x44], 0x10
je 0x5276cb
push edi
call fcn.0052c030
mov eax, dword [edi + 0x2c8]
lea ecx, [esp + 0x16]
push ecx
push edi
mov eax, dword [eax + 0x14]
call eax
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x5276ac
mov byte [edi + 0x29a], 1
push edi
push dword [esi + 0xc40]
call fcn.00522da0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x527a64
push esi
call fcn.00529cd0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x527692
mov eax, dword [edi + 0x2c8]
push 0
push ebx
push edi
mov eax, dword [eax + 0xc]
call eax
jmp 0x527a61
push edi
push esi
call fcn.0051b830
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call fcn.005308f0
add esp, 0x20
push edi
push esi
call fcn.005260e0
add esp, 8
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004ed0cc
add esp, 0x30
ret
mov eax, dword [esi + 0x994]
mov dword [esi + 0x838], eax
mov eax, dword [esi + 0x998]
mov dword [esi + 0x88c], eax
mov eax, dword [esi + 0x99c]
mov dword [esi + 0x83c], eax
mov eax, dword [esi + 0x9a0]
mov dword [esi + 0x890], eax
mov eax, dword [esi + 0x9c0]
mov dword [esi + 0x844], eax
mov dword [esi + 0x898], eax
mov eax, dword [esi + 0x9bc]
mov dword [esi + 0x848], eax
mov dword [esi + 0x89c], eax
mov eax, dword [esi + 0x9ac]
mov dword [esi + 0x84c], eax
mov eax, dword [esi + 0x9b0]
mov dword [esi + 0x8a0], eax
mov eax, dword [esi + 0x9b4]
mov dword [esi + 0x850], eax
mov eax, dword [esi + 0x9b8]
mov dword [esi + 0x8a4], eax
mov eax, dword [esi + 0x9c8]
mov dword [esi + 0x85c], eax
mov eax, dword [esi + 0x9cc]
mov dword [esi + 0x8b0], eax
mov eax, dword [esi + 0x9d0]
mov dword [esi + 0x860], eax
mov eax, dword [esi + 0x9d4]
mov edx, dword [esi + 0x92c]
mov ecx, dword [esi + 0x930]
mov dword [esi + 0x8b4], eax
mov eax, dword [esi + 0x934]
mov dword [esi + 0x870], eax
mov eax, dword [esi + 0x938]
mov dword [esi + 0x8c4], eax
mov eax, dword [esi + 0x960]
mov dword [esi + 0x874], eax
mov eax, dword [esi + 0x964]
mov dword [esi + 0x8c8], eax
mov eax, dword [esi + 0x970]
mov dword [esi + 0x878], eax
mov eax, dword [esi + 0x974]
mov dword [esi + 0x8cc], eax
mov eax, dword [esi + 0x968]
mov dword [esi + 0x87c], eax
mov eax, dword [esi + 0x96c]
mov dword [esi + 0x8d0], eax
lea eax, [edi + 0x248]
push eax
lea eax, [esi + 0x830]
mov dword [esi + 0x86c], edx
push eax
mov dword [esi + 0x8c0], ecx
mov dword [esi + 0x840], edx
mov dword [esi + 0x894], ecx
call fcn.00523a80
add esp, 8
test al, al
je 0x527837
lea eax, [edi + 0x270]
push eax
lea eax, [esi + 0x884]
push eax
call fcn.00523a80
add esp, 8
test al, al
jne 0x527851
pop ebp
pop edi
mov ebx, 0x1b
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004ed0cc
add esp, 0x30
ret
push esi
call fcn.00529200
mov eax, dword [esi + 0xa9c]
add esp, 4
test al, 2
je 0x527871
test byte [esi + 0xfa4], 2
je 0x52790e
test al, 0x20
jne 0x52790e
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x17]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
call fcn.00525190
add esp, 0x14
test al, al
je 0x52790e
cmp byte [esp + 0x13], 0
mov ebx, dword [esp + 0x14]
jne 0x5279ac
push ebx
push esi
call fcn.00526990
add esp, 8
test eax, eax
je 0x5279ac
mov eax, dword [ebx + 0x35c]
test eax, eax
je 0x5279ac
push eax
push dword [ebx + 0x48]
push str.Found_connection__ld__with__zu_requests_on_it_n
push esi
call fcn.0052abb0
push ebx
call fcn.00522fa0
add esp, 0x14
cmp eax, dword [esp + 0x18]
jae 0x5279ac
push esi
call fcn.00523770
add esp, 4
cmp eax, dword [esp + 0x24]
jae 0x5279ac
push str.We_can_reuse__but_we_want_a_new_connection_anyway_n
push esi
call fcn.0052abb0
push ebx
call fcn.005235a0
add esp, 0xc
mov eax, dword [edi + 0x2c8]
test dword [eax + 0x44], 0x100
je 0x527945
mov eax, dword [esi + 0xa9c]
test eax, 0x8000
je 0x527937
or dword [ebp], 0x40000000
mov eax, dword [esi + 0xa9c]
test eax, 0x4000
je 0x527945
or dword [ebp], 0x20000000
cmp byte [esp + 0x12], 0
jne 0x527a41
lea eax, [esp + 0x14]
push eax
push dword [esi + 0xc40]
push edi
call fcn.00523280
mov ecx, dword [esp + 0x24]
add esp, 0xc
test ecx, ecx
je 0x527a79
test eax, eax
je 0x527a79
cmp dword [eax + 4], ecx
jb 0x527a79
push eax
push esi
call fcn.005230a0
push esi
mov ebx, eax
call fcn.005237b0
add esp, 0xc
test ebx, ebx
je 0x527a2b
push 0
push ebx
push esi
call fcn.00525ec0
add esp, 0xc
jmp 0x527a82
push ebx
push edi
call fcn.00529960
push dword [edi + 0x244]
call dword [0x6412b4]
push edi
call dword [0x6412b4]
mov eax, dword [esp + 0x38]
add esp, 0x10
mov edi, ebx
mov dword [eax], ebx
cmp dword [ebx + 0xc4], 0
je 0x5279e2
mov eax, dword [ebx + 0xc8]
jmp 0x5279f9
cmp dword [ebx + 0xe4], 0
je 0x5279f3
mov eax, dword [ebx + 0xe8]
jmp 0x5279f9
mov eax, dword [ebx + 0xa0]
test byte [ebx + 0x29c], 0x20
lea ebp, [ebx + 0x29c]
push eax
mov ecx, str.host
mov eax, str.proxy
cmove eax, ecx
push eax
push dword [ebx + 0x48]
push str.Re_using_existing_connection____ld__with__s__s_n
push esi
call fcn.0052abb0
add esp, 0x14
jmp 0x527b27
push dword [esp + 0x18]
push dword [esp + 0x18]
push str.No_more_connections_allowed_to_host__s:__zu_n
push esi
call fcn.0052abb0
add esp, 0x10
push str.No_connections_available._n
push esi
call fcn.0052abb0
push edi
call fcn.00526e80
mov eax, dword [esp + 0x34]
mov ebx, 0x59
mov dword [eax], 0
add esp, 0xc
pop ebp
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.004ed0cc
add esp, 0x30
ret
push esi
call fcn.005237b0
add esp, 4
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x527ab4
push esi
call fcn.00523770
add esp, 4
cmp eax, ebx
jb 0x527ab4
push esi
call fcn.00523150
add esp, 4
test eax, eax
je 0x527c6b
push 0
push eax
push esi
call fcn.00525ec0
add esp, 0xc
push edi
push dword [esi + 0xc40]
call fcn.00522da0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x527a64
test byte [esi + 0xce4], 0x28
je 0x527af6
test byte [esi + 0xcec], 1
je 0x527af6
push str.NTLM_picked_AND_auth_done_set__clear_picked__n
push esi
call fcn.0052abb0
add esp, 8
mov dword [esi + 0xce4], ebx
and dword [esi + 0xcec], 0xfffffffe
test byte [esi + 0xcf4], 0x28
je 0x527b27
test byte [esi + 0xcfc], 1
je 0x527b27
push str.NTLM_proxy_picked_AND_auth_done_set__clear_picked__n
push esi
call fcn.0052abb0
add esp, 8
mov dword [esi + 0xcf4], 0
and dword [esi + 0xcfc], 0xfffffffe
push edi
push esi
call fcn.005260e0
push esi
call fcn.00529cd0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x527a64
push dword [esp + 0x1c]
mov eax, dword [esi + 0x5d0]
mov dword [edi + 0x360], eax
mov eax, dword [esi + 0x620]
push edi
push esi
mov dword [edi + 0x364], eax
call fcn.005296c0
lea edx, [edi + 0x94]
add esp, 0xc
mov ebx, eax
test edx, edx
je 0x527b96
mov edx, dword [edx + 8]
test edx, edx
je 0x527b96
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x527b80
sub ecx, esi
je 0x527b96
cmp byte [edx + ecx - 1], 0x2e
jne 0x527b96
mov byte [edx + ecx - 1], al
mov eax, dword [ebp]
mov edx, eax
test al, 0x40
je 0x527bd4
lea esi, [edi + 0xdc]
test esi, esi
je 0x527bd4
mov esi, dword [esi + 8]
test esi, esi
je 0x527bd4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x527bb5
mov eax, dword [ebp]
sub ecx, edx
mov edx, eax
je 0x527bd4
cmp byte [esi + ecx - 1], 0x2e
jne 0x527bd4
mov byte [esi + ecx - 1], 0
mov edx, dword [ebp]
mov eax, edx
test dl, dl
jns 0x527c12
lea esi, [edi + 0xbc]
test esi, esi
je 0x527c12
mov esi, dword [esi + 8]
test esi, esi
je 0x527c12
mov ecx, esi
lea eax, [ecx + 1]
mov dword [esp + 0x1c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x527bf4
mov eax, edx
sub ecx, dword [esp + 0x1c]
je 0x527c12
cmp byte [esi + ecx - 1], 0x2e
jne 0x527c12
mov byte [esi + ecx - 1], 0
mov eax, dword [ebp]
test al, 8
je 0x527a64
lea edx, [edi + 0xac]
test edx, edx
je 0x527a64
mov edx, dword [edx + 8]
test edx, edx
je 0x527a64
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x527c38
sub ecx, esi
je 0x527a64
cmp byte [edx + ecx - 1], 0x2e
jne 0x527a64
pop ebp
pop edi
mov byte [edx + ecx - 1], al
mov eax, ebx
mov ecx, dword [esp + 0x34]
pop esi
pop ebx
xor ecx, esp
call fcn.004ed0cc
add esp, 0x30
ret
push str.No_connections_available_in_cache_n
push esi
call fcn.0052abb0
add esp, 8
jmp 0x527a41