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

Disassembly:
sub esp, 0x70
mov eax, dword [0x6c45ac]
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 0x51e69c
mov ebx, esi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x51e392
sub ebx, ecx
cmp ebx, 0x7a1200
ja 0x51e69c
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 0x51ea27
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.0051ce90
mov ebx, dword [esp + 0x98]
add esp, 0xc
mov dword [esp + 0x18], ebx
test al, al
je 0x51e631
lea ebp, [esp + 0x3c]
mov byte [esp + 0x13], 1
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x51e404
lea eax, [esp + 0x3c]
sub ebp, ecx
push str.file
push eax
call fcn.004f82a0
add esp, 8
test eax, eax
je 0x51e631
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 0x51e430
push str.file
xor ebp, ebp
call dword [0x6c400c]
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x51ea27
mov cl, byte [edi]
cmp cl, 0x2f
jne 0x51e527
cmp byte [edi + 1], cl
jne 0x51e4dd
mov cl, byte [edi + 2]
add edi, 2
cmp cl, 0x2f
je 0x51e4dd
cmp cl, 0x61
jl 0x51e480
cmp cl, 0x7a
jle 0x51e488
mov al, cl
sub al, 0x41
cmp al, 0x19
ja 0x51e4a6
mov al, byte [edi + 1]
cmp al, 0x3a
je 0x51e493
cmp al, 0x7c
jne 0x51e4a6
mov al, byte [edi + 2]
mov bl, cl
mov dl, cl
cmp al, 0x2f
je 0x51e4d8
cmp al, 0x5c
je 0x51e4d8
test al, al
je 0x51e4d8
push 0xa
push edi
push str.localhost_
call fcn.004f84b0
add esp, 0xc
test eax, eax
jne 0x51e4d2
push 0xa
push edi
push str.127.0.0.1_
call fcn.004f84b0
add esp, 0xc
test eax, eax
je 0x51e69c
mov cl, byte [edi + 9]
add edi, 9
cmp cl, 0x2f
jne 0x51e527
mov al, byte [edi + 1]
lea edx, [edi + 1]
cmp al, 0x61
jl 0x51e4eb
cmp al, 0x7a
jle 0x51e4f1
sub al, 0x41
cmp al, 0x19
ja 0x51e527
mov al, byte [edi + 2]
cmp al, 0x3a
je 0x51e4fc
cmp al, 0x7c
jne 0x51e527
mov al, byte [edi + 3]
cmp al, 0x2f
je 0x51e50b
cmp al, 0x5c
je 0x51e50b
test al, al
jne 0x51e527
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51e510
sub ecx, esi
lea eax, [ecx + 1]
push eax
push edx
push edi
call fcn.005a8fc0
add esp, 0xc
mov ebx, dword [esp + 0x14]
push dword [esp + 0x18]
push edi
call fcn.0051e2c0
add esp, 8
test al, al
jne 0x51e69c
test byte [esp + 0x18], 0x80
je 0x51e586
cmp byte [edi], al
je 0x51e586
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51e550
sub ecx, edx
lea eax, [ecx + ecx*2]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x51ea27
push 1
push edi
push esi
mov byte [esp + 0x1e], 1
call fcn.0051eb80
add esp, 0xc
mov dword [ebx + 0x2c], esi
mov edi, esi
push 0x23
push edi
call fcn.005a95f0
add esp, 8
test eax, eax
je 0x51e5b3
mov byte [eax], 0
inc eax
cmp byte [eax], 0
je 0x51e5b3
push eax
call dword [0x6c400c]
add esp, 4
mov dword [ebx + 0x24], eax
test eax, eax
je 0x51ea27
push 0x3f
push edi
call fcn.005a95f0
add esp, 8
test eax, eax
je 0x51e5db
mov byte [eax], 0
inc eax
push eax
call dword [0x6c400c]
add esp, 4
mov dword [ebx + 0x20], eax
test eax, eax
je 0x51ea27
cmp byte [edi], 0
je 0x51e7b3
test byte [esp + 0x18], 0x10
jne 0x51e78e
push edi
call fcn.0052b630
mov esi, eax
add esp, 4
test esi, esi
je 0x51ea27
mov edx, edi
mov ecx, esi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x51e761
test al, al
je 0x51e62a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x51e761
add ecx, 2
add edx, 2
test al, al
jne 0x51e606
xor eax, eax
jmp 0x51e766
cmp byte [esp + 0x13], 0
mov byte [edi], 0
je 0x51e6b4
inc esi
xor eax, eax
add esi, ebp
je 0x51e69c
cmp byte [esi], 0x2f
jne 0x51e652
cmp eax, 4
jge 0x51e652
inc eax
add esi, 1
jne 0x51e642
dec eax
cmp eax, 2
ja 0x51e69c
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x2c], eax
call fcn.004efb70
add esp, 4
test eax, eax
jne 0x51e68a
test bl, 8
jne 0x51e68a
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00590be8
add esp, 0x70
ret
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.0051e2c0
add esp, 8
test al, al
je 0x51e6d0
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00590be8
add esp, 0x70
ret
test ebx, 0x204
je 0x51e69c
test bl, 4
mov ebp, 0x628388
mov eax, 0
cmove ebp, eax
mov dword [esp + 0x28], ebp
mov al, byte [esi]
mov ecx, esi
test al, al
je 0x51e6ec
cmp al, 0x2f
je 0x51e6ec
cmp al, 0x3f
je 0x51e6ec
cmp al, 0x23
je 0x51e6ec
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x51e6d8
mov ebx, esi
sub ebx, ecx
je 0x51e707
mov ebp, dword [esp + 0x1c]
push ebx
push ecx
push ebp
call fcn.005a8a40
add esp, 0xc
mov byte [ebx + ebp], 0
jmp 0x51e715
test dword [esp + 0x18], 0x400
je 0x51e69c
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 0x51e720
sub ebx, ecx
push ebx
push esi
push edi
call fcn.005a8a40
mov eax, dword [esp + 0x34]
add esp, 0xc
mov byte [ebx + edi], 0
test eax, eax
je 0x51e527
push eax
call dword [0x6c400c]
mov ebx, dword [esp + 0x18]
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x51ea27
jmp 0x51e52b
sbb eax, eax
or eax, 1
test eax, eax
je 0x51e784
cmp byte [esp + 0x12], 0
je 0x51e77d
push dword [ebx + 0x2c]
call dword [0x6c4004]
add esp, 4
mov edi, esi
mov dword [ebx + 0x2c], esi
jmp 0x51e7a1
push esi
call dword [0x6c4004]
add esp, 4
cmp byte [esp + 0x12], 0
jne 0x51e7a1
push edi
call dword [0x6c400c]
add esp, 4
mov edi, eax
mov dword [ebx + 0x1c], edi
test edi, edi
je 0x51ea27
mov dword [ebx + 0x2c], 0
test ebp, ebp
je 0x51eb3e
push dword [esp + 0x18]
push ebp
call fcn.0051e2c0
add esp, 8
test al, al
jne 0x51e69c
xor edi, edi
push 0x40
push ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], edi
call fcn.005a95f0
mov esi, eax
add esp, 8
mov ebx, ebp
test esi, esi
je 0x51e8a4
mov edi, dword [esp + 0x14]
inc esi
mov ebp, esi
mov eax, dword [edi]
test eax, eax
je 0x51e81e
push eax
call fcn.004efb70
add esp, 4
test eax, eax
je 0x51e81e
test dword [eax + 0x4c], 0x400
je 0x51e81e
lea eax, [esp + 0x1c]
jmp 0x51e820
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.004f07f0
add esp, 0x14
test eax, eax
mov eax, dword [esp + 0x20]
je 0x51e847
mov edi, 3
jmp 0x51e8a8
test eax, eax
je 0x51e85c
test byte [esp + 0x18], 0x20
je 0x51e859
mov edi, 8
jmp 0x51e8a8
mov dword [edi + 4], eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x51e867
mov dword [edi + 8], eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x51e872
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 0x51e935
mov al, byte [esp + 0x12]
cmp al, 0x5d
jne 0x51e8df
mov eax, dword [esp + 0x24]
lea esi, [eax + ebp]
jmp 0x51e922
mov eax, dword [esp + 0x20]
push eax
call dword [0x6c4004]
push dword [esp + 0x30]
call dword [0x6c4004]
push dword [esp + 0x24]
call dword [0x6c4004]
add esp, 0xc
test edi, edi
je 0x51e872
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00590be8
add esp, 0x70
ret
cmp al, 0x25
jne 0x51e69c
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 0x51e69c
cmp byte [esp + 0x12], 0x5d
jne 0x51e69c
mov eax, dword [esp + 0x24]
add esi, eax
add esi, ebp
test esi, esi
je 0x51e965
mov al, byte [esi]
test al, al
je 0x51e965
cmp al, 0x3a
je 0x51e942
jmp 0x51e69c
push 0x3a
push ebp
call fcn.005a95f0
add esp, 8
mov esi, eax
test esi, esi
je 0x51e965
mov al, byte [esi + 1]
lea edi, [esi + 1]
test al, al
jne 0x51e9b9
mov byte [esi], al
movzx eax, byte [esp + 0x13]
xor eax, 1
shl eax, 2
test eax, eax
jne 0x51e6a1
mov ebx, dword [esp + 0x14]
mov ecx, ebp
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51e970
sub ecx, edx
jne 0x51e985
test dword [esp + 0x18], 0x400
jne 0x51e997
push ebp
push ebx
call fcn.0051df90
add esp, 8
test eax, eax
jne 0x51e6a1
push 0x11
lea eax, [esp + 0x6c]
push eax
push ebp
call fcn.0051e120
add esp, 0xc
test al, al
je 0x51ea57
lea eax, [esp + 0x68]
push eax
jmp 0x51ea58
movzx eax, al
push eax
call fcn.0051ecc0
add esp, 4
test eax, eax
je 0x51ea3f
push 0xa
lea eax, [esp + 0x34]
push eax
push edi
call fcn.005bc5f7
mov edi, eax
add esp, 0xc
lea ecx, [edi - 1]
cmp ecx, 0xfffe
ja 0x51ea3f
mov eax, dword [esp + 0x30]
cmp byte [eax], 0
jne 0x51ea3f
push edi
mov byte [esi], 0
push 0x5f7bc0
mov byte [eax], 0
lea eax, [esp + 0x3c]
push 7
push eax
call fcn.00504f80
mov ebx, dword [esp + 0x24]
lea eax, [esp + 0x44]
push eax
mov dword [ebx + 0x30], edi
call dword [0x6c400c]
add esp, 0x14
mov dword [ebx + 0x18], eax
test eax, eax
jne 0x51e969
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.00590be8
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.00590be8
add esp, 0x70
ret
push ebp
call dword [0x6c400c]
add esp, 4
mov dword [ebx + 0x10], eax
test eax, eax
je 0x51ea27
test dword [esp + 0x18], 0x200
je 0x51eb3e
cmp dword [esp + 0x28], 0
jne 0x51eb3e
push 4
push ebp
push str.ftp.
call fcn.004f84b0
add esp, 0xc
test eax, eax
je 0x51ea9f
mov ecx, 0x5f67ac
jmp 0x51eb2a
push 5
push ebp
push str.dict.
call fcn.004f84b0
add esp, 0xc
test eax, eax
je 0x51eaba
mov ecx, str.dict
jmp 0x51eb2a
push 5
push ebp
push str.ldap.
call fcn.004f84b0
add esp, 0xc
test eax, eax
je 0x51ead5
mov ecx, str.ldap
jmp 0x51eb2a
push 5
push ebp
push str.imap.
call fcn.004f84b0
add esp, 0xc
test eax, eax
je 0x51eaf0
mov ecx, str.imap
jmp 0x51eb2a
push 5
push ebp
push str.smtp.
call fcn.004f84b0
add esp, 0xc
test eax, eax
je 0x51eb0b
mov ecx, str.smtp
jmp 0x51eb2a
push 5
push ebp
push str.pop3.
call fcn.004f84b0
add esp, 0xc
mov ecx, str.pop3
test eax, eax
mov edx, 0x62f1b4
cmove ecx, edx
push ecx
call dword [0x6c400c]
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x51ea27
push dword [ebx + 0x28]
call dword [0x6c4004]
push dword [ebx + 0x2c]
mov dword [ebx + 0x28], 0
call dword [0x6c4004]
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.00590be8
add esp, 0x70
ret