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

Disassembly:
sub esp, 0x70
mov eax, dword [0x6c75ac]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x80]
xor ebp, ebp
mov dword [esp + 0x10], eax
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 0
mov dword [esp + 0x24], 0
push edi
test esi, esi
je 0x52018c
mov ebx, esi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x51fe82
sub ebx, ecx
cmp ebx, 0x7a1200
ja 0x52018c
lea eax, [ebx*2 + 2]
push eax
call dword [section..data]
mov edi, eax
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [eax + 0x28], edi
test edi, edi
je 0x520517
lea eax, [ebx + 1]
add eax, edi
mov dword [esp + 0x1c], eax
push 0x29
mov byte [eax], 0
lea eax, [esp + 0x40]
push eax
push esi
call fcn.0051e980
mov ebx, dword [esp + 0x98]
add esp, 0xc
mov dword [esp + 0x18], ebx
test al, al
je 0x520121
lea ebp, [esp + 0x3c]
mov byte [esp + 0x13], 1
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x51fef4
lea eax, [esp + 0x3c]
sub ebp, ecx
push str.file
push eax
call fcn.004f9d90
add esp, 8
test eax, eax
je 0x520121
add esi, 5
mov ecx, edi
sub ecx, esi
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x51ff20
push str.file
xor ebp, ebp
call dword [0x6c700c]
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x520517
mov cl, byte [edi]
cmp cl, 0x2f
jne 0x520017
cmp byte [edi + 1], cl
jne 0x51ffcd
mov cl, byte [edi + 2]
add edi, 2
cmp cl, 0x2f
je 0x51ffcd
cmp cl, 0x61
jl 0x51ff70
cmp cl, 0x7a
jle 0x51ff78
mov al, cl
sub al, 0x41
cmp al, 0x19
ja 0x51ff96
mov al, byte [edi + 1]
cmp al, 0x3a
je 0x51ff83
cmp al, 0x7c
jne 0x51ff96
mov al, byte [edi + 2]
mov bl, cl
mov dl, cl
cmp al, 0x2f
je 0x51ffc8
cmp al, 0x5c
je 0x51ffc8
test al, al
je 0x51ffc8
push 0xa
push edi
push str.localhost_
call fcn.004f9fa0
add esp, 0xc
test eax, eax
jne 0x51ffc2
push 0xa
push edi
push str.127.0.0.1_
call fcn.004f9fa0
add esp, 0xc
test eax, eax
je 0x52018c
mov cl, byte [edi + 9]
add edi, 9
cmp cl, 0x2f
jne 0x520017
mov al, byte [edi + 1]
lea edx, [edi + 1]
cmp al, 0x61
jl 0x51ffdb
cmp al, 0x7a
jle 0x51ffe1
sub al, 0x41
cmp al, 0x19
ja 0x520017
mov al, byte [edi + 2]
cmp al, 0x3a
je 0x51ffec
cmp al, 0x7c
jne 0x520017
mov al, byte [edi + 3]
cmp al, 0x2f
je 0x51fffb
cmp al, 0x5c
je 0x51fffb
test al, al
jne 0x520017
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x520000
sub ecx, esi
lea eax, [ecx + 1]
push eax
push edx
push edi
call fcn.005aaab0
add esp, 0xc
mov ebx, dword [esp + 0x14]
push dword [esp + 0x18]
push edi
call fcn.0051fdb0
add esp, 8
test al, al
jne 0x52018c
test byte [esp + 0x18], 0x80
je 0x520076
cmp byte [edi], al
je 0x520076
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x520040
sub ecx, edx
lea eax, [ecx + ecx*2]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x520517
push 1
push edi
push esi
mov byte [esp + 0x1e], 1
call fcn.00520670
add esp, 0xc
mov dword [ebx + 0x2c], esi
mov edi, esi
push 0x23
push edi
call fcn.005ab0e0
add esp, 8
test eax, eax
je 0x5200a3
mov byte [eax], 0
inc eax
cmp byte [eax], 0
je 0x5200a3
push eax
call dword [0x6c700c]
add esp, 4
mov dword [ebx + 0x24], eax
test eax, eax
je 0x520517
push 0x3f
push edi
call fcn.005ab0e0
add esp, 8
test eax, eax
je 0x5200cb
mov byte [eax], 0
inc eax
push eax
call dword [0x6c700c]
add esp, 4
mov dword [ebx + 0x20], eax
test eax, eax
je 0x520517
cmp byte [edi], 0
je 0x5202a3
test byte [esp + 0x18], 0x10
jne 0x52027e
push edi
call fcn.0052d120
mov esi, eax
add esp, 4
test esi, esi
je 0x520517
mov edx, edi
mov ecx, esi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x520251
test al, al
je 0x52011a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x520251
add ecx, 2
add edx, 2
test al, al
jne 0x5200f6
xor eax, eax
jmp 0x520256
cmp byte [esp + 0x13], 0
mov byte [edi], 0
je 0x5201a4
inc esi
xor eax, eax
add esi, ebp
je 0x52018c
cmp byte [esi], 0x2f
jne 0x520142
cmp eax, 4
jge 0x520142
inc eax
add esi, 1
jne 0x520132
dec eax
cmp eax, 2
ja 0x52018c
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x2c], eax
call fcn.004f1660
add esp, 4
test eax, eax
jne 0x52017a
test bl, 8
jne 0x52017a
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.005926d8
add esp, 0x70
ret
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.0051fdb0
add esp, 8
test al, al
je 0x5201c0
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.005926d8
add esp, 0x70
ret
test ebx, 0x204
je 0x52018c
test bl, 4
mov ebp, 0x62a380
mov eax, 0
cmove ebp, eax
mov dword [esp + 0x28], ebp
mov al, byte [esi]
mov ecx, esi
test al, al
je 0x5201dc
cmp al, 0x2f
je 0x5201dc
cmp al, 0x3f
je 0x5201dc
cmp al, 0x23
je 0x5201dc
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x5201c8
mov ebx, esi
sub ebx, ecx
je 0x5201f7
mov ebp, dword [esp + 0x1c]
push ebx
push ecx
push ebp
call fcn.005aa530
add esp, 0xc
mov byte [ebx + ebp], 0
jmp 0x520205
test dword [esp + 0x18], 0x400
je 0x52018c
mov ebp, dword [esp + 0x1c]
mov ebx, esi
lea ecx, [ebx + 1]
nop word [eax + eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x520210
sub ebx, ecx
push ebx
push esi
push edi
call fcn.005aa530
mov eax, dword [esp + 0x34]
add esp, 0xc
mov byte [ebx + edi], 0
test eax, eax
je 0x520017
push eax
call dword [0x6c700c]
mov ebx, dword [esp + 0x18]
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x520517
jmp 0x52001b
sbb eax, eax
or eax, 1
test eax, eax
je 0x520274
cmp byte [esp + 0x12], 0
je 0x52026d
push dword [ebx + 0x2c]
call dword [0x6c7004]
add esp, 4
mov edi, esi
mov dword [ebx + 0x2c], esi
jmp 0x520291
push esi
call dword [0x6c7004]
add esp, 4
cmp byte [esp + 0x12], 0
jne 0x520291
push edi
call dword [0x6c700c]
add esp, 4
mov edi, eax
mov dword [ebx + 0x1c], edi
test edi, edi
je 0x520517
mov dword [ebx + 0x2c], 0
test ebp, ebp
je 0x52062e
push dword [esp + 0x18]
push ebp
call fcn.0051fdb0
add esp, 8
test al, al
jne 0x52018c
xor edi, edi
push 0x40
push ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], edi
call fcn.005ab0e0
mov esi, eax
add esp, 8
mov ebx, ebp
test esi, esi
je 0x520394
mov edi, dword [esp + 0x14]
inc esi
mov ebp, esi
mov eax, dword [edi]
test eax, eax
je 0x52030e
push eax
call fcn.004f1660
add esp, 4
test eax, eax
je 0x52030e
test dword [eax + 0x4c], 0x400
je 0x52030e
lea eax, [esp + 0x1c]
jmp 0x520310
xor eax, eax
push eax
lea eax, [esp + 0x30]
sub esi, ebx
push eax
lea eax, [esp + 0x28]
dec esi
push eax
push esi
push ebx
call fcn.004f22e0
add esp, 0x14
test eax, eax
mov eax, dword [esp + 0x20]
je 0x520337
mov edi, 3
jmp 0x520398
test eax, eax
je 0x52034c
test byte [esp + 0x18], 0x20
je 0x520349
mov edi, 8
jmp 0x520398
mov dword [edi + 4], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x520357
mov dword [edi + 8], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x520362
mov dword [edi + 0xc], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x16]
push eax
push str.__45_0123456789abcdefABCDEF:.__c_n
push ebp
call fcn.00404591
add esp, 0x10
cmp eax, 1
jne 0x520425
mov al, byte [esp + 0x12]
cmp al, 0x5d
jne 0x5203cf
mov eax, dword [esp + 0x24]
lea esi, [eax + ebp]
jmp 0x520412
mov eax, dword [esp + 0x20]
push eax
call dword [0x6c7004]
push dword [esp + 0x30]
call dword [0x6c7004]
push dword [esp + 0x24]
call dword [0x6c7004]
add esp, 0xc
test edi, edi
je 0x520362
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.005926d8
add esp, 0x70
ret
cmp al, 0x25
jne 0x52018c
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x16]
push eax
lea eax, [esi + ebp]
push str._____c_n
push eax
call fcn.00404591
add esp, 0x10
cmp eax, 1
jne 0x52018c
cmp byte [esp + 0x12], 0x5d
jne 0x52018c
mov eax, dword [esp + 0x24]
add esi, eax
add esi, ebp
test esi, esi
je 0x520455
mov al, byte [esi]
test al, al
je 0x520455
cmp al, 0x3a
je 0x520432
jmp 0x52018c
push 0x3a
push ebp
call fcn.005ab0e0
add esp, 8
mov esi, eax
test esi, esi
je 0x520455
mov al, byte [esi + 1]
lea edi, [esi + 1]
test al, al
jne 0x5204a9
mov byte [esi], al
movzx eax, byte [esp + 0x13]
xor eax, 1
shl eax, 2
test eax, eax
jne 0x520191
mov ebx, dword [esp + 0x14]
mov ecx, ebp
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x520460
sub ecx, edx
jne 0x520475
test dword [esp + 0x18], 0x400
jne 0x520487
push ebp
push ebx
call fcn.0051fa80
add esp, 8
test eax, eax
jne 0x520191
push 0x11
lea eax, [esp + 0x6c]
push eax
push ebp
call fcn.0051fc10
add esp, 0xc
test al, al
je 0x520547
lea eax, [esp + 0x68]
push eax
jmp 0x520548
movzx eax, al
push eax
call fcn.005207b0
add esp, 4
test eax, eax
je 0x52052f
push 0xa
lea eax, [esp + 0x34]
push eax
push edi
call fcn.005be0e7
mov edi, eax
add esp, 0xc
lea ecx, [edi - 1]
cmp ecx, 0xfffe
ja 0x52052f
mov eax, dword [esp + 0x30]
cmp byte [eax], 0
jne 0x52052f
push edi
mov byte [esi], 0
push 0x5f9bc0
mov byte [eax], 0
lea eax, [esp + 0x3c]
push 7
push eax
call fcn.00506a70
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x44]
push eax
mov dword [ebx + 0x30], edi
call dword [0x6c700c]
add esp, 0x14
mov dword [ebx + 0x18], eax
test eax, eax
jne 0x520459
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.005926d8
add esp, 0x70
ret
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.005926d8
add esp, 0x70
ret
push ebp
call dword [0x6c700c]
add esp, 4
mov dword [ebx + 0x10], eax
test eax, eax
je 0x520517
test dword [esp + 0x18], 0x200
je 0x52062e
cmp dword [esp + 0x28], 0
jne 0x52062e
push 4
push ebp
push str.ftp.
call fcn.004f9fa0
add esp, 0xc
test eax, eax
je 0x52058f
mov ecx, 0x5f87ac
jmp 0x52061a
push 5
push ebp
push str.dict.
call fcn.004f9fa0
add esp, 0xc
test eax, eax
je 0x5205aa
mov ecx, str.dict
jmp 0x52061a
push 5
push ebp
push str.ldap.
call fcn.004f9fa0
add esp, 0xc
test eax, eax
je 0x5205c5
mov ecx, str.ldap
jmp 0x52061a
push 5
push ebp
push str.imap.
call fcn.004f9fa0
add esp, 0xc
test eax, eax
je 0x5205e0
mov ecx, str.imap
jmp 0x52061a
push 5
push ebp
push str.smtp.
call fcn.004f9fa0
add esp, 0xc
test eax, eax
je 0x5205fb
mov ecx, str.smtp
jmp 0x52061a
push 5
push ebp
push str.pop3.
call fcn.004f9fa0
add esp, 0xc
mov ecx, str.pop3
test eax, eax
mov edx, 0x6311ac
cmove ecx, edx
push ecx
call dword [0x6c700c]
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x520517
push dword [ebx + 0x28]
call dword [0x6c7004]
push dword [ebx + 0x2c]
mov dword [ebx + 0x28], 0
call dword [0x6c7004]
mov ecx, dword [esp + 0x84]
add esp, 8
mov dword [ebx + 0x2c], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005926d8
add esp, 0x70
ret