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

Disassembly:
sub esp, 0x38
mov eax, dword [0x509040]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
mov ebx, dword [esp + 0x44]
push ebp
push esi
mov esi, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x20], ebx
push dword [esi + 0x7c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], 0
mov byte [esp + 0x17], 0
call fcn.0048c0a0
push dword [esi + 0x7c]
mov dword [esp + 0x34], eax
call fcn.0048c0c0
mov byte [edi], 0
add esp, 8
mov dword [ebx], 0
cmp dword [esi + 0xcbc], 0
mov dword [esp + 0x30], eax
jne 0x4989da
mov edi, 3
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004870f9
add esp, 0x38
ret
push esi
call fcn.004984d0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x498a03
mov edi, 0x1b
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004870f9
add esp, 0x38
ret
push ebp
push esi
mov dword [ebx], ebp
call fcn.0049a760
mov edi, eax
add esp, 8
test edi, edi
jne 0x49935c
mov eax, dword [esi + 0x60c]
test eax, eax
je 0x498a37
push eax
call dword [0x5090a4]
add esp, 4
mov dword [ebp + 0xec], eax
test eax, eax
je 0x4989e9
mov eax, dword [esi + 0x5f4]
test eax, eax
je 0x498a55
push eax
call dword [0x5090a4]
add esp, 4
mov dword [ebp + 0xf0], eax
test eax, eax
je 0x4989e9
mov eax, dword [esi + 0x5f8]
test eax, eax
je 0x498a83
push eax
call dword [0x5090a4]
add esp, 4
mov dword [ebp + 0x42c], eax
test eax, eax
je 0x4989e9
mov al, byte [esi + 0x6ef]
mov byte [ebp + 0x1e3], al
push ebp
push esi
call fcn.004994d0
mov edi, eax
add esp, 8
test edi, edi
jne 0x49935c
mov eax, dword [ebp + 0x1ec]
test byte [eax + 0x4c], 1
je 0x498ab3
cmp byte [ebp + 0x1c8], 0
je 0x498ab3
mov byte [ebp + 0x1cb], 1
movzx eax, word [esi + 0x170]
test ax, ax
je 0x498aff
cmp byte [esi + 0xd64], 0
je 0x498aff
push eax
push 0x4eecd0
mov dword [ebp + 0x444], eax
lea eax, [esp + 0x3c]
push 0x10
push eax
call fcn.004ac9d0
push 0
lea eax, [esp + 0x48]
push eax
push 6
push dword [esi + 0xc98]
call fcn.004c55a0
add esp, 0x20
test eax, eax
jne 0x4989e9
push ebp
push esi
call fcn.00499b20
mov edi, eax
add esp, 8
test edi, edi
jne 0x49935c
mov eax, dword [ebp + 0x1e8]
mov ecx, str.anonymous
mov ebx, str.ftp_example.com
test byte [eax + 0x4c], 0x20
je 0x498b31
cmp dword [esi + 0xd4c], edi
je 0x498b38
mov ecx, 0x4ee7f6
mov ebx, ecx
cmp dword [ebp + 0xe0], edi
jne 0x498b58
push ecx
call dword [0x5090a4]
add esp, 4
mov dword [ebp + 0xe0], eax
test eax, eax
je 0x4989e9
cmp dword [ebp + 0xe4], edi
jne 0x498b7a
push ebx
call dword [0x5090a4]
add esp, 4
mov dword [ebp + 0xe4], eax
test eax, eax
mov ecx, 0x1b
cmove edi, ecx
test edi, edi
jne 0x49935c
push dword [esi + 0x3c0]
push ebp
push esi
call fcn.00499f80
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49935c
cmp byte [ebp + 0x1c8], al
je 0x498bbb
lea eax, [ebp + 0x90]
push eax
call fcn.004c8250
add esp, 4
test eax, eax
jne 0x49935e
cmp byte [ebp + 0x1c9], 0
je 0x498bd8
lea eax, [ebp + 0x70]
push eax
call fcn.004c8250
add esp, 4
test eax, eax
jne 0x49935e
cmp byte [ebp + 0x1d1], 0
je 0x498c16
lea eax, [ebp + 0x60]
push eax
call fcn.004c8250
add esp, 4
test eax, eax
jne 0x49935e
cmp byte [ebp + 0x1d1], al
je 0x498c16
push dword [ebp + 0x50]
push dword [ebp + 0x68]
call fcn.004a07b0
add esp, 8
test eax, eax
je 0x498c16
mov byte [ebp + 0x1d1], 0
mov cl, byte [ebp + 0x1d2]
test cl, cl
je 0x498c37
mov eax, dword [ebp + 0x448]
cmp eax, dword [ebp + 0x444]
jne 0x498c37
mov byte [ebp + 0x1d2], 0
xor cl, cl
cmp byte [ebp + 0x1d1], 0
jne 0x498c44
test cl, cl
je 0x498c54
cmp byte [ebp + 0x1c8], 0
je 0x498c54
mov byte [ebp + 0x1cb], 1
mov eax, dword [ebp + 0x1e8]
mov edx, eax
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x498c7c
push ebp
push esi
call ecx
mov edi, eax
add esp, 8
test edi, edi
jne 0x49935c
mov eax, dword [ebp + 0x1e8]
mov edx, eax
cmp dword [ebp + 0x440], 0
jge 0x498c8e
mov eax, dword [eax + 0x40]
mov dword [ebp + 0x440], eax
test byte [edx + 0x4c], 0x10
je 0x498d3f
push 0xffffffffffffffff
push 0
push ebp
push esi
call fcn.0049dad0
mov eax, dword [ebp + 0x1e8]
lea ecx, [esp + 0x23]
push ecx
push esi
mov eax, dword [eax + 0x14]
call eax
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x498d20
push ebp
push esi
call fcn.0048bb70
push esi
call fcn.00494060
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49935c
push esi
call fcn.0049b0a0
mov edi, eax
add esp, 4
test edi, edi
je 0x498d0d
mov eax, dword [ebp + 0x1e8]
push 0
push edi
push esi
mov eax, dword [eax + 0xc]
call eax
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004870f9
add esp, 0x38
ret
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
call fcn.004a2180
add esp, 0x18
push ebp
push esi
call fcn.00497e40
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004870f9
add esp, 0x38
ret
mov dword [ebp + 0x130], 0x49ca10
lea ecx, [esi + 0x3d4]
mov dword [ebp + 0x138], fcn.0049ca60
lea edi, [esi + 0x43c]
mov dword [ebp + 0x134], 0x49ca10
mov dword [ebp + 0x13c], fcn.0049ca60
mov al, byte [esi + 0x6e8]
mov byte [ebp + 0x1e0], al
mov eax, dword [esi + 0x55c]
mov dword [ecx], eax
mov eax, dword [esi + 0x564]
mov dword [esi + 0x3d8], eax
mov eax, dword [esi + 0x590]
mov dword [esi + 0x3dc], eax
mov eax, dword [esi + 0x644]
mov dword [esi + 0x3fc], eax
mov eax, dword [esi + 0x574]
mov dword [esi + 0x3e4], eax
mov eax, dword [esi + 0x57c]
mov dword [esi + 0x3e8], eax
mov eax, dword [esi + 0x56c]
mov dword [esi + 0x3ec], eax
mov eax, dword [esi + 0x634]
mov dword [esi + 0x3f4], eax
mov eax, dword [esi + 0x64c]
mov dword [esi + 0x3f8], eax
mov eax, dword [esi + 0x620]
mov dword [esi + 0x400], eax
mov eax, dword [esi + 0x560]
mov dword [edi], eax
mov eax, dword [esi + 0x568]
mov dword [esi + 0x440], eax
mov eax, dword [esi + 0x578]
mov dword [esi + 0x44c], eax
mov eax, dword [esi + 0x580]
mov dword [esi + 0x450], eax
mov eax, dword [esi + 0x570]
mov dword [esi + 0x454], eax
mov eax, dword [esi + 0x638]
mov dword [esi + 0x45c], eax
mov eax, dword [esi + 0x650]
mov dword [esi + 0x460], eax
mov eax, dword [esi + 0x594]
mov dword [esi + 0x444], eax
mov eax, dword [esi + 0x648]
mov dword [esi + 0x464], eax
mov eax, dword [esi + 0x58c]
mov dword [esi + 0x458], eax
mov eax, dword [esi + 0x500]
mov dword [esi + 0x488], eax
mov eax, dword [esi + 0x52c]
mov dword [esi + 0x48c], eax
mov eax, dword [esi + 0x53c]
mov dword [esi + 0x494], eax
mov eax, dword [esi + 0x534]
mov dword [esi + 0x498], eax
mov eax, dword [esi + 0x4f8]
mov dword [esi + 0x448], eax
mov eax, dword [esi + 0x640]
mov dword [esi + 0x490], eax
mov eax, dword [esi + 0x588]
mov dword [esi + 0x3f0], eax
mov eax, dword [esi + 0x4fc]
mov dword [esi + 0x420], eax
mov eax, dword [esi + 0x528]
mov dword [esi + 0x424], eax
mov eax, dword [esi + 0x538]
mov dword [esi + 0x42c], eax
mov eax, dword [esi + 0x530]
mov dword [esi + 0x430], eax
mov eax, dword [esi + 0x4f4]
mov dword [esi + 0x3e0], eax
mov eax, dword [esi + 0x63c]
mov dword [esi + 0x428], eax
lea eax, [ebp + 0x148]
push eax
push ecx
call fcn.00495750
add esp, 8
test al, al
je 0x4989e9
lea eax, [ebp + 0x188]
push eax
push edi
call fcn.00495750
add esp, 8
test al, al
je 0x4989e9
lea eax, [esp + 0x34]
push eax
call fcn.004914f0
add esp, 4
cmp dword [esi + 0x84], 0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x34], xmm0
je 0x498f5e
push 2
push 5
push esi
call fcn.004a0e20
add esp, 0xc
mov ecx, dword [esi + 0x890]
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 + 0x54]
movups xmmword [eax], xmm0
call fcn.004915a0
add esp, 0x20
mov ebx, eax
cmp dword [esi + 0x84], 0
mov edi, edx
je 0x498f9d
push 5
push esi
call fcn.004a0e60
add esp, 8
test edi, edi
jl 0x49904e
jg 0x498fb3
cmp ebx, 0x3e8
jb 0x49904e
push 0x498740
lea eax, [esp + 0x28]
mov dword [esp + 0x28], esi
push eax
push dword [esi + 0x890]
mov dword [esp + 0x34], 0
push esi
call fcn.00494660
add esp, 0x10
test al, al
je 0x499015
nop dword [eax]
push 1
push dword [esp + 0x2c]
push esi
call fcn.00494780
push 1
push dword [esp + 0x38]
push esi
call fcn.00497c30
push 0x498740
lea eax, [esp + 0x40]
push eax
push dword [esi + 0x890]
push esi
call fcn.00494660
add esp, 0x28
test al, al
jne 0x498fe0
cmp dword [esi + 0x84], 0
je 0x49902b
push 2
push 5
push esi
call fcn.004a0e20
add esp, 0xc
mov eax, dword [esi + 0x890]
movups xmm0, xmmword [esp + 0x34]
movups xmmword [eax + 0x30], xmm0
cmp dword [esi + 0x84], 0
je 0x49904e
push 5
push esi
call fcn.004a0e60
add esp, 8
cmp byte [esi + 0x6de], 0
je 0x499064
cmp dword [esi + 0x938], 0
je 0x4992ac
cmp byte [esi + 0x6be], 0
jne 0x4992ac
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x1f]
push eax
lea eax, [esp + 0x1c]
push eax
push ebp
push esi
call fcn.00496e20
add esp, 0x14
test al, al
je 0x4992ac
cmp dword [ebp + 0xe0], 0
mov ebx, dword [esp + 0x14]
je 0x4990fa
push dword [ebx + 0xe0]
call dword [0x50909c]
push dword [ebx + 0xe4]
mov dword [ebx + 0xe0], 0
call dword [0x50909c]
mov dword [ebx + 0xe4], 0
add esp, 8
mov eax, dword [ebp + 0xe0]
mov dword [ebx + 0xe0], eax
mov eax, dword [ebp + 0xe4]
mov dword [ebx + 0xe4], eax
mov dword [ebp + 0xe0], 0
mov dword [ebp + 0xe4], 0
mov al, byte [ebp + 0x1ca]
mov byte [ebx + 0x1ca], al
test al, al
je 0x4991c1
push dword [ebx + 0xa8]
call dword [0x50909c]
push dword [ebx + 0x88]
mov dword [ebx + 0xa8], 0
call dword [0x50909c]
push dword [ebx + 0xac]
mov dword [ebx + 0x88], 0
call dword [0x50909c]
push dword [ebx + 0x8c]
mov dword [ebx + 0xac], 0
call dword [0x50909c]
mov dword [ebx + 0x8c], 0
add esp, 0x10
mov eax, dword [ebp + 0xa8]
mov dword [ebx + 0xa8], eax
mov eax, dword [ebp + 0x88]
mov dword [ebx + 0x88], eax
mov eax, dword [ebp + 0xac]
mov dword [ebx + 0xac], eax
mov eax, dword [ebp + 0x8c]
mov dword [ebx + 0x8c], eax
mov dword [ebp + 0xa8], 0
mov dword [ebp + 0x88], 0
mov dword [ebp + 0xac], 0
mov dword [ebp + 0x8c], 0
lea edi, [ebx + 0x48]
push edi
call fcn.004c8220
add ebx, 0x60
push ebx
call fcn.004c8220
push dword [edi]
call dword [0x50909c]
push dword [ebx]
mov dword [edi], 0
call dword [0x50909c]
mov dword [ebx], 0
movups xmm0, xmmword [ebp + 0x48]
movups xmmword [edi], xmm0
mov edi, dword [esp + 0x24]
movups xmm0, xmmword [ebp + 0x60]
mov dword [ebp + 0x48], 0
mov dword [ebp + 0x4c], 0
movups xmmword [ebx], xmm0
mov eax, dword [ebp + 0x448]
mov dword [ebp + 0x60], 0
push dword [edi + 0x58]
mov dword [edi + 0x448], eax
mov eax, dword [ebp + 0x444]
mov dword [edi + 0x444], eax
call dword [0x50909c]
mov dword [edi + 0x58], 0
mov eax, dword [ebp + 0x58]
mov dword [edi + 0x58], eax
push ebp
mov dword [ebp + 0x58], 0
push esi
mov byte [edi + 0x1cf], 1
call fcn.00498770
mov eax, dword [esp + 0x3c]
add esp, 0x1c
mov dword [eax], edi
cmp dword [edi + 0x78], 0
je 0x49926d
mov eax, dword [edi + 0x7c]
jmp 0x499281
cmp dword [edi + 0x98], 0
je 0x49927e
mov eax, dword [edi + 0x9c]
jmp 0x499281
mov eax, dword [edi + 0x54]
cmp byte [edi + 0x1cd], 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.0049ccf0
add esp, 0x10
mov ebp, edi
jmp 0x49942a
mov eax, dword [ebp + 0x1e8]
test dword [eax + 0x4c], 0x100
je 0x4992cb
cmp byte [esi + 0x6e9], 0
je 0x4992cb
mov byte [ebp + 0x1e1], 1
cmp byte [esp + 0x13], 0
jne 0x499338
push dword [esi + 0x890]
push ebp
push esi
call fcn.004945b0
mov ebx, dword [esp + 0x38]
add esp, 0xc
test ebx, ebx
je 0x499371
test eax, eax
je 0x499371
cmp dword [eax + 4], ebx
jb 0x499371
push eax
push esi
call fcn.004943c0
add esp, 8
mov edi, eax
cmp dword [esi + 0x84], 0
je 0x499317
push 5
push esi
call fcn.004a0e60
add esp, 8
test edi, edi
je 0x499329
push 0
push edi
push esi
call fcn.00497c30
add esp, 0xc
jmp 0x499385
push ebx
push str.No_more_connections_allowed_to_host:__zu
push esi
call fcn.0049ccf0
add esp, 0xc
push str.No_connections_available.
push esi
call fcn.0049ccf0
push ebp
push esi
call fcn.00498770
mov eax, dword [esp + 0x30]
add esp, 0x10
mov edi, 0x59
mov dword [eax], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004870f9
add esp, 0x38
ret
cmp dword [esi + 0x84], 0
je 0x499385
push 5
push esi
call fcn.004a0e60
add esp, 8
mov edi, dword [esp + 0x30]
test edi, edi
je 0x4993b7
push esi
call fcn.00494a40
add esp, 4
cmp eax, edi
jb 0x4993b7
push esi
call fcn.00494470
add esp, 4
test eax, eax
je 0x49948a
push 0
push eax
push esi
call fcn.00497c30
add esp, 0xc
push ebp
push esi
call fcn.0048bb70
push esi
call fcn.00494060
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49935c
test byte [esi + 0x970], 0x28
je 0x4993f9
cmp byte [esi + 0x978], al
je 0x4993f9
push str.NTLM_picked_AND_auth_done_set__clear_picked
push esi
call fcn.0049ccf0
add esp, 8
mov dword [esi + 0x970], edi
mov byte [esi + 0x978], 0
test byte [esi + 0x980], 0x28
je 0x49942a
cmp byte [esi + 0x988], 0
je 0x49942a
push str.NTLM_proxy_picked_AND_auth_done_set__clear_picked
push esi
call fcn.0049ccf0
add esp, 8
mov dword [esi + 0x980], 0
mov byte [esi + 0x988], 0
push ebp
push esi
call fcn.00497e40
push esi
call fcn.0049b0a0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49935c
cmp byte [ebp + 0x1cf], 0
mov eax, dword [esi + 0x184]
mov dword [ebp + 0x24c], eax
mov eax, dword [esi + 0x1d4]
mov dword [ebp + 0x250], eax
mov eax, dword [esp + 0x1c]
je 0x49949d
push esi
mov byte [eax], 0
call fcn.0049c750
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004870f9
add esp, 0x38
ret
push str.No_connections_available_in_cache
push esi
call fcn.0049ccf0
add esp, 8
jmp 0x499338
push eax
push ebp
push esi
call fcn.0049ade0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x49935c
push esi
call fcn.0049c750
mov ecx, dword [esp + 0x48]
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004870f9
add esp, 0x38
ret