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

Disassembly:
sub esp, 0x16c
mov eax, dword [0x100a3428]
xor eax, esp
mov dword [esp + 0x168], eax
mov eax, dword [esp + 0x170]
push ebx
mov ebx, dword [eax + 0xddc]
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], eax
mov dword [eax + 0xec0], esi
mov dword [esp + 0x14], ebx
cmp ebx, esi
je 0x10040471
lea ecx, [ecx]
mov eax, dword [ebx]
cmp eax, esi
je 0x10040406
cmp byte [eax], 0x2d
jne 0x100401e0
inc eax
push 0x3a
push eax
call dword [sym.imp.MSVCR100.dll_strchr]
mov edi, eax
add esp, 8
cmp edi, esi
je 0x10040167
push 0xa
mov esi, edi
sub esi, dword [ebx]
inc edi
push 0
push edi
call dword [sym.imp.MSVCR100.dll_strtoul]
add esp, 0xc
dec esi
je 0x10040167
cmp eax, 0xffff
ja 0x10040167
test edi, edi
jne 0x10040181
mov eax, dword [ebx]
mov ecx, dword [esp + 0x10]
push eax
push str.Bad_syntax_CURLOPT_RESOLVE_removal_entry__s
push ecx
call fcn.1001ccc0
add esp, 0xc
jmp 0x10040406
mov edx, dword [ebx]
push 0x106
push eax
inc edx
lea eax, [esp + 0x78]
mov ecx, esi
call fcn.1003f700
mov edi, dword [esp + 0x18]
add esp, 8
cmp dword [edi + 0x78], 0
mov esi, eax
je 0x100401b1
push 2
push 3
push edi
call fcn.1001ae10
add esp, 0xc
mov eax, dword [edi + 0x68]
inc esi
push esi
lea edx, [esp + 0x74]
push edx
push eax
call fcn.10049690
add esp, 0xc
cmp dword [edi + 0x78], 0
je 0x10040406
mov ecx, edi
push 3
push ecx
call fcn.1001ae50
add esp, 8
jmp 0x10040406
mov ebp, eax
cmp byte [ebp], 0x2b
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], 1
jne 0x100401fd
inc ebp
mov dword [esp + 0x24], esi
push 0x3a
push ebp
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
cmp eax, esi
je 0x10040433
push 0xa
lea edx, [esp + 0x24]
mov ecx, eax
lea esi, [eax + 1]
push edx
sub ecx, ebp
push esi
mov dword [esp + 0x28], ecx
call dword [sym.imp.MSVCR100.dll_strtoul]
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffff
ja 0x1004042f
mov ecx, dword [esp + 0x20]
cmp ecx, esi
je 0x1004042f
cmp byte [ecx], 0x3a
jne 0x1004042f
lea eax, [ecx + 1]
mov dword [esp + 0x2c], eax
lea esi, [ecx + 1]
push 0x2c
push esi
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
jne 0x1004027b
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10040270
sub eax, edx
add eax, esi
mov ecx, eax
mov dword [esp + 0x20], ecx
cmp byte [esi], 0x5b
jne 0x1004029a
cmp eax, esi
je 0x1004042f
cmp byte [eax - 1], 0x5d
jne 0x1004042f
inc esi
dec eax
sub eax, esi
mov edi, eax
je 0x100402e9
cmp edi, 0x40
jae 0x1004042f
push edi
lea ecx, [esp + 0x34]
push esi
push ecx
call sub.MSVCR100.dll_memcpy
lea edx, [esp + 0x3c]
push ebx
push edx
mov byte [esp + edi + 0x44], 0
call fcn.10041ce0
add esp, 0x14
test eax, eax
je 0x10040418
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x100402e1
mov dword [ecx + 0x1c], eax
jmp 0x100402e5
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x20]
cmp byte [ecx], 0
jne 0x10040257
cmp dword [esp + 0x18], 0
je 0x1004042f
mov ecx, dword [esp + 0x1c]
push 0x106
push ebx
lea eax, [esp + 0x78]
mov edx, ebp
call fcn.1003f700
mov edi, dword [esp + 0x18]
add esp, 8
cmp dword [edi + 0x78], 0
mov esi, eax
je 0x1004032e
push 2
push 3
push edi
call fcn.1001ae10
add esp, 0xc
mov ecx, dword [edi + 0x68]
inc esi
push esi
lea eax, [esp + 0x74]
push eax
push ecx
call fcn.10049710
add esp, 0xc
test eax, eax
je 0x1004036c
mov edx, dword [esp + 0x1c]
push ebx
push ebp
push edx
push str.RESOLVE__.s:_d_is___old_addresses_discarded
push edi
call fcn.1001ccc0
mov ecx, dword [edi + 0x68]
push esi
lea eax, [esp + 0x88]
push eax
push ecx
call fcn.10049690
add esp, 0x20
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ebx
push edx
push ebp
push eax
push edi
call fcn.1003fc00
mov esi, eax
xor eax, eax
add esp, 0x14
cmp esi, eax
je 0x10040398
cmp dword [esp + 0x24], eax
je 0x10040395
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
dec dword [esi + 0x10]
cmp dword [edi + 0x78], eax
je 0x100403a8
push 3
push edi
call fcn.1001ae50
add esp, 8
test esi, esi
je 0x10040459
cmp dword [esp + 0x24], 0
mov eax, 0x1008063c
jne 0x100403c1
mov eax, str.__non_permanent_
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
push eax
push ecx
push ebx
push ebp
push esi
push str.Added__.s:_d:_s_to_DNS_cache_s
push edi
call fcn.1001ccc0
add esp, 0x1c
cmp esi, 1
jne 0x10040402
cmp byte [ebp], 0x2a
jne 0x10040402
push ebx
push str.RESOLVE_:_d_using_wildcard
mov esi, edi
push esi
call fcn.1001ccc0
add esp, 0xc
mov dword [esi + 0xec0], 1
mov ebx, dword [esp + 0x14]
mov ebx, dword [ebx + 4]
xor esi, esi
mov dword [esp + 0x14], ebx
cmp ebx, esi
je 0x1004046d
jmp 0x10040120
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push str.Resolve_address__s_found_illegal
push eax
call fcn.1001ccc0
add esp, 0xc
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x10]
push ecx
push str.Couldnt_parse_CURLOPT_RESOLVE_entry__s
push edx
call fcn.1001cb80
mov eax, dword [esp + 0x24]
push eax
call fcn.10041890
add esp, 0x10
mov eax, 0x31
jmp 0x10040479
mov ecx, dword [esp + 0x18]
push ecx
call fcn.10041890
add esp, 4
mov eax, 0x1b
jmp 0x10040479
mov eax, dword [esp + 0x10]
mov dword [eax + 0xddc], esi
xor eax, eax
mov ecx, dword [esp + 0x178]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1005cc54
add esp, 0x16c
ret