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

Disassembly:
sub esp, 0x70
mov eax, dword [0x1006a744]
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
push edi
mov dword [esp + 0x10], eax
xor edi, edi
lea eax, [esp + 0x24]
mov byte [esp + 0x17], 0
push 0x7a1200
push eax
mov dword [esp + 0x3c], ebp
call fcn.1000f280
mov ebx, esi
add esp, 8
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10049db5
sub ebx, ecx
cmp ebx, 0x7a1200
jbe 0x10049dd0
mov edi, 3
jmp 0x1004a6b8
mov eax, dword [esp + 0x8c]
and eax, 0x204
mov dword [esp + 0x1c], eax
setne al
movzx eax, al
push eax
push 0x29
lea eax, [esp + 0x58]
push eax
push esi
call fcn.10048340
add esp, 0x10
mov dword [esp + 0x20], eax
test eax, eax
je 0x10049fff
mov ecx, str.file
lea eax, [esp + 0x50]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10049e30
test dl, dl
je 0x10049e2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10049e30
add eax, 2
add ecx, 2
test dl, dl
jne 0x10049e10
xor eax, eax
jmp 0x10049e35
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10049f8d
cmp ebx, 6
ja 0x10049e4c
mov edi, 0x13
jmp 0x1004a6b8
add esi, 5
push str.file
mov ebx, esi
call dword [0x100691b8]
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [eax], ecx
test ecx, ecx
je 0x1004a6b3
cmp byte [esi], 0x2f
jne 0x10049f35
cmp byte [esi + 1], 0x2f
jne 0x10049f35
mov al, byte [esi + 2]
add esi, 2
cmp al, 0x2f
je 0x10049f2e
cmp al, 0x61
jl 0x10049e9c
cmp al, 0x7a
jle 0x10049ea2
sub al, 0x41
cmp al, 0x19
ja 0x10049ebc
mov al, byte [esi + 1]
cmp al, 0x3a
je 0x10049ead
cmp al, 0x7c
jne 0x10049ebc
mov al, byte [esi + 2]
cmp al, 0x2f
je 0x10049f2e
cmp al, 0x5c
je 0x10049f2e
test al, al
je 0x10049f2e
push 0xa
push str.localhost_
push esi
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
jne 0x10049f88
push 0xa
push str.127.0.0.1_
push esi
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
jne 0x10049f88
push str._:____
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
add esp, 8
test eax, eax
je 0x10049e42
cmp byte [eax], 0x2f
jne 0x10049e42
sub eax, esi
je 0x10049f2c
push eax
lea eax, [esp + 0x28]
push esi
push eax
call fcn.1000f240
add esp, 0xc
test eax, eax
jne 0x1004a6b3
mov byte [esp + 0x17], 1
mov esi, ebx
cmp byte [esp + 0x17], 0
jne 0x10049f42
lea eax, [esp + 0x24]
push eax
call fcn.1000f2b0
add esp, 4
cmp byte [esi], 0x2f
jne 0x1004a083
mov al, byte [esi + 1]
cmp al, 0x61
jl 0x10049f56
cmp al, 0x7a
jle 0x10049f60
sub al, 0x41
cmp al, 0x19
ja 0x1004a083
mov al, byte [esi + 2]
cmp al, 0x3a
je 0x10049f6f
cmp al, 0x7c
jne 0x1004a083
mov al, byte [esi + 3]
cmp al, 0x2f
je 0x10049f82
cmp al, 0x5c
je 0x10049f82
test al, al
jne 0x1004a083
inc esi
jmp 0x1004a083
add esi, 9
jmp 0x10049f35
inc esi
xor ebx, ebx
add esi, dword [esp + 0x20]
je 0x10049fa6
cmp byte [esi], 0x2f
jne 0x10049fa6
cmp ebx, 4
jge 0x10049fa6
inc ebx
add esi, 1
jne 0x10049f96
lea eax, [esp + 0x50]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x24], eax
call fcn.10044530
mov ecx, dword [esp + 0x94]
add esp, 8
test eax, eax
jne 0x10049fd1
test cl, 8
jne 0x10049fd1
lea edi, [eax + 5]
jmp 0x1004a6b8
lea eax, [ebx - 1]
cmp eax, 2
ja 0x10049ff5
push ecx
lea eax, [esp + 0x54]
push eax
call fcn.10049ae0
add esp, 8
test al, al
je 0x1004a01f
mov edi, 0x1b
jmp 0x1004a6b8
mov edi, 0x1c
jmp 0x1004a6b8
cmp dword [esp + 0x1c], edi
je 0x10049feb
mov edx, dword [esp + 0x8c]
mov ebx, str.https
test dl, 4
mov eax, edi
cmove ebx, eax
mov dword [esp + 0x1c], ebx
jmp 0x1004a02a
mov edx, dword [esp + 0x8c]
lea ebx, [esp + 0x50]
mov al, byte [esi]
mov ecx, esi
test al, al
je 0x1004a046
cmp al, 0x2f
je 0x1004a046
cmp al, 0x3f
je 0x1004a046
cmp al, 0x23
je 0x1004a046
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1004a032
mov eax, esi
sub eax, ecx
je 0x1004a0ef
push eax
push ecx
lea eax, [esp + 0x2c]
push eax
call fcn.1000f240
add esp, 0xc
test eax, eax
jne 0x1004a6b3
test ebx, ebx
je 0x1004a083
push ebx
call dword [0x100691b8]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x1004a6b3
push 0x23
push esi
call sub.VCRUNTIME140.dll_strchr
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1004a105
mov ebp, ebx
lea ecx, [ebp + 1]
nop dword [eax]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x1004a0a0
sub ebp, ecx
mov dword [esp + 0x34], ebp
cmp ebp, 1
jbe 0x1004a105
lea eax, [ebx + 1]
push ebp
push eax
call fcn.1003ccb0
mov ecx, eax
add esp, 8
mov eax, dword [esp + 0x10]
mov dword [eax + 0x24], ecx
test ecx, ecx
je 0x1004a6b3
push dword [esp + 0x8c]
push ecx
call fcn.10049ae0
add esp, 8
test al, al
je 0x1004a105
mov edi, 0x14
jmp 0x1004a6b8
test edx, 0x400
jne 0x1004a067
mov edi, 0xe
jmp 0x1004a6b8
push 0x3f
push esi
call sub.VCRUNTIME140.dll_strchr
mov edx, eax
add esp, 8
test edx, edx
je 0x1004a22f
test ebx, ebx
je 0x1004a126
cmp edx, ebx
jae 0x1004a22f
mov ebp, edx
lea ecx, [ebp + 1]
nop dword [eax + eax]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x1004a130
mov ebx, esi
sub ebp, ecx
mov ecx, dword [esp + 0x34]
sub ebp, ecx
lea eax, [ebx + 1]
mov dword [esp + 0x34], eax
nop dword [eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x1004a150
sub ebx, dword [esp + 0x34]
sub ebx, ebp
sub ebx, ecx
cmp ebp, 1
jbe 0x1004a20a
mov eax, dword [esp + 0x8c]
and eax, 0x80
mov dword [esp + 0x34], eax
lea eax, [edx + 1]
mov dword [esp + 0x18], eax
je 0x1004a1c9
lea eax, [esp + 0x3c]
push 0x7a1200
push eax
call fcn.1000f280
push 1
push 1
lea eax, [ebp - 1]
push eax
push dword [esp + 0x2c]
lea eax, [esp + 0x54]
push eax
call fcn.1004a760
add esp, 0x1c
test eax, eax
jne 0x1004a6b3
lea eax, [esp + 0x3c]
push eax
call fcn.1000f2a0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x20], eax
mov eax, ecx
jmp 0x1004a1e9
push ebp
push eax
call fcn.1003ccb0
mov ecx, eax
add esp, 8
mov eax, dword [esp + 0x10]
mov dword [eax + 0x20], ecx
test ecx, ecx
je 0x1004a6b3
mov byte [ecx + ebp - 1], 0
mov ebp, dword [esp + 0x8c]
push ebp
push dword [eax + 0x20]
call fcn.10049ae0
add esp, 8
test al, al
je 0x1004a229
mov edi, 0x1a
jmp 0x1004a6b8
push 0x1005835b
call dword [0x100691b8]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x20], eax
test eax, eax
je 0x1004a6b3
jmp 0x1004a23f
mov eax, dword [esp + 0x34]
jmp 0x1004a251
mov ebx, esi
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x1004a234
sub ebx, ecx
sub ebx, ebp
mov ebp, dword [esp + 0x8c]
mov eax, ebp
and eax, 0x80
mov dword [esp + 0x34], eax
test ebx, ebx
je 0x1004a2ab
test eax, eax
je 0x1004a2ab
lea eax, [esp + 0x3c]
push 0x7a1200
push eax
call fcn.1000f280
push 0
push 1
push ebx
lea eax, [esp + 0x50]
push esi
push eax
call fcn.1004a760
add esp, 0x1c
test eax, eax
jne 0x1004a6b3
lea eax, [esp + 0x3c]
push eax
call fcn.10002ba0
mov ebx, eax
lea eax, [esp + 0x40]
push eax
call fcn.1000f2a0
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x3c]
add esp, 8
mov dword [ecx + 0x1c], esi
jmp 0x1004a2af
mov ecx, dword [esp + 0x10]
cmp ebx, 1
jbe 0x1004a344
mov edx, dword [ecx + 0x1c]
test edx, edx
jne 0x1004a2e4
lea eax, [ebx + 1]
push eax
push esi
call fcn.1003ccb0
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [ecx + 0x1c], eax
test eax, eax
je 0x1004a6b3
mov byte [eax + ebx], 0
mov esi, dword [ecx + 0x1c]
jmp 0x1004a2ec
test eax, eax
je 0x1004a2ec
mov byte [edx + ebx], 0
push ebp
push dword [ecx + 0x1c]
call fcn.10049ae0
add esp, 8
test al, al
je 0x1004a306
mov edi, 0x19
jmp 0x1004a6b8
test byte [esp + 0x8c], 0x10
jne 0x1004a344
lea eax, [esp + 0x18]
push eax
push ebx
push esi
call fcn.10049410
add esp, 0xc
test eax, eax
jne 0x1004a6b3
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x1004a348
push dword [esi + 0x1c]
call dword [0x100691b0]
add esp, 4
mov dword [esi + 0x1c], ebx
jmp 0x1004a348
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
call fcn.10002ba0
add esp, 4
test eax, eax
je 0x1004a690
mov ebx, dword [esp + 0x8c]
lea eax, [esp + 0x24]
push ebx
push eax
push esi
call fcn.10049b40
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1004a6b8
lea eax, [esp + 0x24]
push eax
call fcn.1000f2a0
mov edi, eax
add esp, 4
cmp byte [edi], 0x5b
jne 0x1004a3c4
push 0x5d
push edi
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
test esi, esi
jne 0x1004a3aa
lea edi, [eax + 0x16]
jmp 0x1004a6b8
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1004a46a
cmp al, 0x3a
je 0x1004a3d1
mov edi, 4
jmp 0x1004a6b8
push 0x3a
push edi
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov esi, eax
test esi, esi
je 0x1004a46a
mov eax, esi
sub eax, edi
push eax
lea eax, [esp + 0x28]
push eax
call fcn.1000f2d0
mov al, byte [esi + 1]
inc esi
add esp, 8
test al, al
jne 0x1004a40b
xor eax, eax
mov edi, 4
cmp dword [esp + 0x20], eax
cmovne edi, eax
test edi, edi
jne 0x1004a6b8
jmp 0x1004a46c
sub al, 0x30
cmp al, 9
ja 0x1004a3ba
push 0xa
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
mov esi, eax
add esp, 0xc
cmp esi, 0xffff
jg 0x1004a3ba
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
jne 0x1004a3ba
push esi
push 0x1005db98
mov byte [eax], 0
lea eax, [esp + 0x3c]
push 7
push eax
call sym.libcurl.dll_curl_msnprintf
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x44]
push eax
mov dword [edi + 0x28], esi
call dword [0x100691b8]
add esp, 0x14
mov dword [edi + 0x18], eax
test eax, eax
je 0x1004a6b3
xor edi, edi
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.1000f2a0
add esp, 4
push eax
call fcn.10049ae0
add esp, 8
test al, al
je 0x1004a491
mov edi, 0x15
jmp 0x1004a6b8
push 0x11
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.1000f2a0
add esp, 4
push eax
call fcn.10049930
add esp, 0xc
test al, al
lea eax, [esp + 0x24]
push eax
je 0x1004a524
call fcn.1000f2b0
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.1000f1f0
add esp, 0xc
test eax, eax
jne 0x1004a6b3
mov ebx, dword [esp + 0x10]
test dword [esp + 0x8c], 0x200
je 0x1004a667
cmp dword [esp + 0x1c], 0
jne 0x1004a667
lea eax, [esp + 0x24]
push eax
call fcn.1000f2a0
push 4
mov esi, eax
push str.ftp.
push esi
call sym.libcurl.dll_curl_strnequal
add esp, 0x10
test eax, eax
je 0x1004a5cc
mov ecx, 0x1005c214
jmp 0x1004a657
call fcn.1000f2a0
mov esi, eax
add esp, 4
cmp byte [esi], 0x5b
je 0x1004a594
push 0x25
push esi
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
je 0x1004a594
push 3
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push esi
call fcn.10010250
add esp, 0x14
test eax, eax
jne 0x1004a487
lea eax, [esp + 0x24]
push eax
call fcn.1000f2b0
push dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push dword [esp + 0x28]
push eax
call fcn.1000f240
push dword [esp + 0x30]
mov esi, eax
call dword [0x100691b0]
add esp, 0x14
test esi, esi
jne 0x1004a6b3
lea eax, [esp + 0x24]
push eax
call fcn.10002ba0
add esp, 4
push eax
lea eax, [esp + 0x28]
push eax
call fcn.1000f2a0
mov ebx, dword [esp + 0x18]
add esp, 4
push eax
push ebx
call fcn.10049740
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1004a6b8
jmp 0x1004a4da
push 5
push str.dict.
push esi
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x1004a5e7
mov ecx, str.dict
jmp 0x1004a657
push 5
push str.ldap.
push esi
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x1004a602
mov ecx, str.ldap
jmp 0x1004a657
push 5
push str.imap.
push esi
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x1004a61d
mov ecx, str.imap
jmp 0x1004a657
push 5
push str.smtp.
push esi
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
test eax, eax
je 0x1004a638
mov ecx, str.smtp
jmp 0x1004a657
push 5
push str.pop3.
push esi
call sym.libcurl.dll_curl_strnequal
add esp, 0xc
mov ecx, str.pop3
test eax, eax
mov edx, str.http
cmove ecx, edx
push ecx
call dword [0x100691b8]
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x1004a6b3
lea eax, [esp + 0x24]
push eax
call fcn.1000f2a0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x10], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.10056613
add esp, 0x70
ret
test dword [esp + 0x8c], 0x400
je 0x1004a667
lea eax, [esp + 0x24]
push 0x1005835b
push eax
call fcn.1000f1f0
add esp, 8
test eax, eax
je 0x1004a667
mov edi, 7
lea eax, [esp + 0x24]
push eax
call fcn.1000f250
push dword [esp + 0x14]
call fcn.100496d0
mov ecx, dword [esp + 0x84]
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10056613
add esp, 0x70
ret