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

Disassembly:
sub esp, 0x68
mov eax, dword [0x57f0b4]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov esi, dword [esp + 0x78]
mov ebx, esi
mov dword [esp + 0x10], ebp
mov byte [esp + 0xd], 0
mov byte [esp + 0xf], 0
mov byte [esp + 0xe], 0
lea ecx, [ebx + 1]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
mov al, byte [ebx]
inc ebx
test al, al
jne 0x5084d1
sub ebx, ecx
cmp ebx, 0x7a1200
jbe 0x5084f9
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00518690
add esp, 0x68
ret
lea eax, [ebx*2 + 2]
push edi
push eax
call dword [0x57f060]
mov edi, eax
add esp, 4
mov dword [ebp + 0x28], edi
mov dword [esp + 0x1c], edi
test edi, edi
je 0x508811
lea ebp, [ebx + 1]
push 0x29
lea eax, [esp + 0x38]
add ebp, edi
push eax
push esi
mov byte [ebp], 0
call fcn.00506ee0
mov edx, dword [esp + 0x90]
add esp, 0xc
test al, al
je 0x508710
lea ecx, [esp + 0x34]
mov byte [esp + 0x12], 1
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x508550
sub ecx, edx
lea eax, [esp + 0x34]
mov dword [esp + 0x18], ecx
mov ecx, str.file
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x508586
test dl, dl
je 0x508582
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x508586
add eax, 2
add ecx, 2
test dl, dl
jne 0x508566
xor eax, eax
jmp 0x50858b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x508709
cmp ebx, 6
jbe 0x5086f1
add esi, 5
mov ecx, edi
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x5085a3
push str.file
call dword [0x57f06c]
mov ebx, dword [esp + 0x18]
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x508811
mov cl, byte [edi]
cmp cl, 0x2f
jne 0x508682
cmp byte [edi + 1], cl
jne 0x508682
mov al, byte [edi + 2]
add edi, 2
cmp al, cl
je 0x508680
cmp al, 0x61
jl 0x5085f6
cmp al, 0x7a
jle 0x5085fc
sub al, 0x41
cmp al, 0x19
ja 0x508616
mov al, byte [edi + 1]
cmp al, 0x3a
je 0x508607
cmp al, 0x7c
jne 0x508616
mov al, byte [edi + 2]
cmp al, 0x2f
je 0x508680
cmp al, 0x5c
je 0x508680
test al, al
je 0x508680
push 0xa
push str.localhost_
push edi
call fcn.004e42c0
add esp, 0xc
test eax, eax
jne 0x50867d
push 0xa
push str.127.0.0.1_
push edi
call fcn.004e42c0
add esp, 0xc
test eax, eax
jne 0x50867d
push str._:____
push edi
call fcn.00531e80
mov esi, eax
add esp, 8
test esi, esi
je 0x5086f1
cmp byte [esi], 0x2f
jne 0x5086f1
sub esi, edi
je 0x508677
push esi
push edi
push ebp
call fcn.0051ad20
add esp, 0xc
mov byte [esi + ebp], 0
mov byte [esp + 0x13], 1
mov edi, dword [esp + 0x1c]
jmp 0x508680
add edi, 9
mov cl, byte [edi]
xor eax, eax
cmp byte [esp + 0x13], al
cmovne eax, ebp
mov ebp, eax
cmp cl, 0x2f
jne 0x5088a2
mov al, byte [edi + 1]
lea edx, [edi + 1]
cmp al, 0x61
jl 0x5086a4
cmp al, 0x7a
jle 0x5086ae
sub al, 0x41
cmp al, 0x19
ja 0x5088a2
mov al, byte [edi + 2]
cmp al, 0x3a
je 0x5086bd
cmp al, 0x7c
jne 0x5088a2
mov al, byte [edi + 3]
cmp al, 0x2f
je 0x5086d0
cmp al, 0x5c
je 0x5086d0
test al, al
jne 0x5088a2
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5086d5
sub ecx, esi
lea eax, [ecx + 1]
push eax
push edx
push edi
call fcn.0051b2a0
add esp, 0xc
jmp 0x5088a2
pop edi
pop esi
pop ebp
mov eax, 0x13
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00518690
add esp, 0x68
ret
mov edx, dword [esp + 0x84]
cmp byte [esp + 0x12], 0
mov byte [edi], 0
je 0x508841
inc esi
xor eax, eax
add esi, dword [esp + 0x18]
je 0x508829
nop dword [eax + eax]
cmp byte [esi], 0x2f
jne 0x508740
cmp eax, 4
jge 0x508740
inc eax
add esi, 1
jne 0x508730
dec eax
cmp eax, 2
ja 0x508829
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x28], eax
call fcn.004da040
add esp, 4
test eax, eax
mov eax, dword [esp + 0x84]
jne 0x508782
test al, 8
jne 0x508782
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00518690
add esp, 0x68
ret
push eax
lea eax, [esp + 0x38]
push eax
call fcn.005083b0
add esp, 8
test al, al
jne 0x508849
mov edx, dword [esp + 0x84]
mov al, byte [esi]
mov ecx, esi
test al, al
je 0x5087bb
cmp al, 0x2f
je 0x5087bb
cmp al, 0x3f
je 0x5087bb
cmp al, 0x23
je 0x5087bb
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x5087a7
mov ebx, esi
sub ebx, ecx
je 0x50887a
push ebx
push ecx
push ebp
call fcn.0051ad20
add esp, 0xc
mov byte [ebx + ebp], 0
mov ecx, edi
sub ecx, esi
nop dword [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x5087e0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x50889e
push eax
call dword [0x57f06c]
mov ebx, dword [esp + 0x18]
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x5088a2
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00518690
add esp, 0x68
ret
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00518690
add esp, 0x68
ret
test edx, 0x204
jne 0x508861
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00518690
add esp, 0x68
ret
test dl, 4
mov ebx, str.https
mov eax, 0
cmove ebx, eax
mov dword [esp + 0x24], ebx
jmp 0x50879f
test edx, 0x400
jne 0x5087d4
pop edi
pop esi
pop ebp
mov eax, 0xe
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00518690
add esp, 0x68
ret
mov ebx, dword [esp + 0x14]
test byte [esp + 0x84], 0x80
je 0x5088ec
cmp byte [edi], 0
je 0x5088ec
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5088b6
sub ecx, edx
lea eax, [ecx + ecx*2]
push eax
call dword [0x57f060]
mov esi, eax
add esp, 4
test esi, esi
je 0x508811
push 1
push edi
push esi
mov byte [esp + 0x1d], 1
call fcn.00508f20
add esp, 0xc
mov dword [ebx + 0x2c], esi
mov edi, esi
push 0x23
push edi
call fcn.0051a760
mov esi, eax
add esp, 8
test esi, esi
je 0x508947
push dword [esp + 0x84]
mov byte [esi], 0
inc esi
push esi
call fcn.005083b0
add esp, 8
test al, al
je 0x50892d
pop edi
pop esi
pop ebp
mov eax, 0x14
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00518690
add esp, 0x68
ret
cmp byte [esi], 0
je 0x508947
push esi
call dword [0x57f06c]
add esp, 4
mov dword [ebx + 0x24], eax
test eax, eax
je 0x508811
push 0x3f
push edi
call fcn.0051a760
mov esi, eax
add esp, 8
test esi, esi
je 0x50899d
push dword [esp + 0x84]
mov byte [esi], 0
inc esi
push esi
call fcn.005083b0
add esp, 8
test al, al
je 0x508988
pop edi
pop esi
pop ebp
mov eax, 0x1a
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00518690
add esp, 0x68
ret
push esi
call dword [0x57f06c]
add esp, 4
mov dword [ebx + 0x20], eax
test eax, eax
je 0x508811
push dword [esp + 0x84]
push edi
call fcn.005083b0
add esp, 8
test al, al
je 0x5089c9
pop edi
pop esi
pop ebp
mov eax, 0x19
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00518690
add esp, 0x68
ret
cmp byte [edi], 0
je 0x508a65
test byte [esp + 0x84], 0x10
jne 0x508a40
push edi
call fcn.00516160
mov esi, eax
add esp, 4
test esi, esi
je 0x508811
mov edx, edi
mov ecx, esi
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x508a13
test al, al
je 0x508a0f
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x508a13
add ecx, 2
add edx, 2
test al, al
jne 0x5089f3
xor eax, eax
jmp 0x508a18
sbb eax, eax
or eax, 1
test eax, eax
je 0x508a36
cmp byte [esp + 0x11], 0
je 0x508a2f
push dword [ebx + 0x2c]
call dword [0x57f064]
add esp, 4
mov edi, esi
mov dword [ebx + 0x2c], esi
jmp 0x508a53
push esi
call dword [0x57f064]
add esp, 4
cmp byte [esp + 0x11], 0
jne 0x508a53
push edi
call dword [0x57f06c]
add esp, 4
mov edi, eax
mov dword [ebx + 0x1c], edi
test edi, edi
je 0x508811
mov dword [ebx + 0x2c], 0
test ebp, ebp
je 0x508edb
xor esi, esi
push 0x40
push ebp
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
call fcn.0051a760
mov edi, eax
mov dword [esp + 0x1c], ebp
add esp, 8
test edi, edi
je 0x508b9e
mov eax, dword [ebx]
inc edi
mov ebp, edi
test eax, eax
je 0x508ab9
push eax
call fcn.004da040
add esp, 4
test eax, eax
je 0x508ab9
test dword [eax + 0x4c], 0x400
je 0x508ab9
lea eax, [esp + 0x18]
jmp 0x508abb
xor eax, eax
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
sub edi, eax
dec edi
push edi
push eax
call fcn.004dad70
add esp, 0x14
test eax, eax
jne 0x508b99
cmp dword [esp + 0x20], esi
je 0x508b1c
mov eax, dword [esp + 0x84]
test al, 0x20
je 0x508afa
mov esi, 8
jmp 0x508b9e
push eax
push dword [esp + 0x24]
call fcn.005083b0
add esp, 8
test al, al
je 0x508b15
mov esi, 0x1d
jmp 0x508b9e
mov eax, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x84]
test eax, eax
je 0x508b47
push esi
push eax
call fcn.005083b0
add esp, 8
test al, al
je 0x508b40
mov esi, 0x18
jmp 0x508b9e
mov eax, dword [esp + 0x1c]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x508b64
push esi
push eax
call fcn.005083b0
add esp, 8
test al, al
jne 0x508b99
mov eax, dword [esp + 0x18]
mov dword [ebx + 0xc], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x15]
push eax
push str.__45_0123456789abcdefABCDEF:.__c_n
push ebp
call fcn.004d4470
add esp, 0x10
cmp eax, 1
jne 0x508c52
mov al, byte [esp + 0x11]
cmp al, 0x5d
jne 0x508bed
mov eax, dword [esp + 0x14]
lea esi, [eax + ebp]
jmp 0x508c24
mov esi, 0x17
push dword [esp + 0x20]
call dword [0x57f064]
push dword [esp + 0x20]
call dword [0x57f064]
push dword [esp + 0x20]
call dword [0x57f064]
add esp, 0xc
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
test esi, esi
je 0x508b64
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00518690
add esp, 0x68
ret
cmp al, 0x25
jne 0x508c3a
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x15]
push eax
lea eax, [esi + ebp]
push str._____c_n
push eax
call fcn.004d4470
add esp, 0x10
cmp eax, 1
jne 0x508c3a
cmp byte [esp + 0x11], 0x5d
jne 0x508c3a
mov eax, dword [esp + 0x14]
add esi, eax
add esi, ebp
test esi, esi
je 0x508d18
mov al, byte [esi]
test al, al
je 0x508d18
cmp al, 0x3a
je 0x508c5f
pop edi
pop esi
pop ebp
mov eax, 0x16
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00518690
add esp, 0x68
ret
push 0x3a
push ebp
call fcn.0051a760
add esp, 8
mov esi, eax
test esi, esi
je 0x508d18
mov al, byte [esi + 1]
lea edi, [esi + 1]
test al, al
jne 0x508c99
mov byte [esi], al
movzx eax, byte [esp + 0x12]
xor eax, 1
shl eax, 2
test eax, eax
je 0x508d18
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00518690
add esp, 0x68
ret
movzx eax, al
push eax
call fcn.00509040
add esp, 4
test eax, eax
jne 0x508cc1
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00518690
add esp, 0x68
ret
push 0xa
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.005223fb
mov edi, eax
add esp, 0xc
cmp edi, 0xffff
jg 0x508ca9
mov eax, dword [esp + 0x28]
cmp byte [eax], 0
jne 0x508ca9
push edi
mov byte [esi], 0
push 0x550ef0
mov byte [eax], 0
lea eax, [esp + 0x34]
push 7
push eax
call fcn.004e2c90
lea eax, [esp + 0x3c]
mov dword [ebx + 0x30], edi
push eax
call dword [0x57f06c]
add esp, 0x14
mov dword [ebx + 0x18], eax
test eax, eax
je 0x508811
push dword [esp + 0x84]
push ebp
call fcn.005083b0
add esp, 8
test al, al
jne 0x508db8
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x508d35
sub ecx, edx
jne 0x508d63
test dword [esp + 0x84], 0x400
je 0x508d63
push 0x563af1
call dword [0x57f06c]
add esp, 4
mov dword [ebx + 0x10], eax
jmp 0x508df8
push 0x11
lea eax, [esp + 0x64]
push eax
push ebp
lea esi, [ebx + 0x10]
call fcn.00508210
add esp, 0xc
test al, al
je 0x508d8c
lea eax, [esp + 0x60]
push eax
call dword [0x57f06c]
add esp, 4
mov dword [esi], eax
jmp 0x508df8
cmp byte [ebp], 0x5b
je 0x508dd0
push 0x25
push ebp
call fcn.0051a760
add esp, 8
test eax, eax
je 0x508dd0
push 3
lea eax, [esp + 0x2c]
push eax
push esi
push 0
push ebp
call fcn.005097b0
add esp, 0x14
test eax, eax
je 0x508de4
pop edi
pop esi
pop ebp
mov eax, 0x15
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00518690
add esp, 0x68
ret
push ebp
call dword [0x57f06c]
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x508811
push dword [ebx + 0x10]
push ebx
call fcn.00508000
add esp, 8
test eax, eax
jne 0x508816
cmp dword [ebx + 0x10], 0
je 0x508811
test dword [esp + 0x84], 0x200
je 0x508edb
cmp dword [esp + 0x24], 0
jne 0x508edb
push 4
push str.ftp.
push ebp
call fcn.004e42c0
add esp, 0xc
test eax, eax
je 0x508e3c
mov ecx, 0x551f78
jmp 0x508ec7
push 5
push str.dict.
push ebp
call fcn.004e42c0
add esp, 0xc
test eax, eax
je 0x508e57
mov ecx, str.dict
jmp 0x508ec7
push 5
push str.ldap.
push ebp
call fcn.004e42c0
add esp, 0xc
test eax, eax
je 0x508e72
mov ecx, str.ldap
jmp 0x508ec7
push 5
push str.imap.
push ebp
call fcn.004e42c0
add esp, 0xc
test eax, eax
je 0x508e8d
mov ecx, str.imap
jmp 0x508ec7
push 5
push str.smtp.
push ebp
call fcn.004e42c0
add esp, 0xc
test eax, eax
je 0x508ea8
mov ecx, str.smtp
jmp 0x508ec7
push 5
push str.pop3.
push ebp
call fcn.004e42c0
add esp, 0xc
mov ecx, str.pop3
test eax, eax
mov edx, str.http
cmove ecx, edx
push ecx
call dword [0x57f06c]
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x508811
push dword [ebx + 0x28]
call dword [0x57f064]
push dword [ebx + 0x2c]
mov dword [ebx + 0x28], 0
call dword [0x57f064]
mov ecx, dword [esp + 0x7c]
add esp, 8
mov dword [ebx + 0x2c], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00518690
add esp, 0x68
ret