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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
movzx eax, byte [esp + 0x7c]
mov ebx, dword [esp + 0x70]
mov dword [esp], 0
mov byte [esp + 0x26], al
call sub.msvcrt.dll_time
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
call sym._cookiehash
test ebx, ebx
je 0x418665
mov esi, eax
mov eax, dword [ebx + eax*4]
test eax, eax
je 0x418665
mov eax, ebx
call sym._remove_expired
lea eax, [esp + 0x3c]
mov dword [esp], 2
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
call sym._Curl_inet_pton
mov byte [esp + 0x27], 1
test eax, eax
je 0x418688
mov ebx, dword [ebx + esi*4]
test ebx, ebx
je 0x418665
mov eax, dword [esp + 0x10]
xor edi, edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
sar eax, 0x1f
mov dword [esp + 0x1c], eax
lea esi, [esi]
mov esi, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x1c]
mov eax, esi
or eax, ecx
je 0x41831c
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x10], esi
sbb eax, ecx
jge 0x418428
cmp byte [ebx + 0x30], 1
jne 0x41832d
cmp byte [esp + 0x26], 0
je 0x418428
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41835d
cmp byte [ebx + 0x24], 0
je 0x418345
cmp byte [esp + 0x27], 0
je 0x418628
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call sym._Curl_strcasecompare
test eax, eax
je 0x418428
mov ebp, dword [ebx + 0x10]
test ebp, ebp
je 0x4184d8
mov dword [esp], ebp
call sym._strlen
mov edi, eax
cmp eax, 1
je 0x4184d8
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call dword [0x45e808]
mov esi, eax
test eax, eax
je 0x418428
mov dword [esp + 4], 0x3f
mov dword [esp], eax
call sym._strchr
test eax, eax
je 0x4183a9
mov byte [eax], 0
cmp byte [esi], 0x2f
mov ecx, dword [sym._free]
je 0x4183d2
mov dword [esp], esi
call ecx
mov dword [esp], 0x46281c
call dword [0x45e808]
mov esi, eax
test eax, eax
je 0x418428
mov ecx, dword [sym._free]
mov dword [esp], esi
mov dword [esp + 0x28], ecx
call sym._strlen
mov ecx, dword [esp + 0x28]
cmp eax, edi
mov dword [esp + 0x2c], eax
jb 0x418618
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebp
call sym._strncmp
mov ecx, dword [esp + 0x28]
test eax, eax
jne 0x418618
mov edx, dword [esp + 0x2c]
cmp edi, edx
je 0x4184d0
cmp byte [esi + edi], 0x2f
mov dword [esp], esi
je 0x4184d3
call ecx
lea esi, [esi]
mov ebx, dword [ebx]
test ebx, ebx
jne 0x418300
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4184c1
lea ebx, [eax*4]
mov dword [esp], ebx
call dword [0x45e814]
mov esi, eax
test eax, eax
je 0x418654
test edi, edi
je 0x41846b
mov dword [eax], edi
mov edi, dword [edi]
add eax, 4
test edi, edi
jne 0x418460
mov ebp, dword [esp + 0x20]
mov dword [esp + 0xc], sym._cookie_sort
mov dword [esp + 8], 4
mov dword [esp + 4], ebp
mov dword [esp], esi
call sym._qsort
mov edi, dword [esi]
mov eax, esi
lea ecx, [esi + ebx - 4]
cmp ebp, 1
je 0x4184ae
lea esi, cs:[esi]
mov edx, dword [eax]
mov ebp, dword [eax + 4]
add eax, 4
mov dword [edx], ebp
cmp eax, ecx
jne 0x4184a0
mov eax, dword [esi + ebx - 4]
mov dword [eax], 0
mov dword [esp], esi
call dword [0x45e810]
add esp, 0x5c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call ecx
lea esi, [esi]
mov dword [esp + 4], 1
mov dword [esp], 0x38
call dword [0x45e804]
mov esi, eax
test eax, eax
je 0x418650
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x418512
mov dword [esp], eax
call dword [0x45e808]
mov dword [esi + 0x20], eax
test eax, eax
je 0x418678
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41852d
mov dword [esp], eax
call dword [0x45e808]
mov dword [esi + 0x14], eax
test eax, eax
je 0x418678
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x418548
mov dword [esp], eax
call dword [0x45e808]
mov dword [esi + 0xc], eax
test eax, eax
je 0x418678
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x418563
mov dword [esp], eax
call dword [0x45e808]
mov dword [esi + 0x10], eax
test eax, eax
je 0x418678
mov eax, dword [ebx + 4]
test eax, eax
je 0x41857e
mov dword [esp], eax
call dword [0x45e808]
mov dword [esi + 4], eax
test eax, eax
je 0x418678
mov eax, dword [ebx + 8]
test eax, eax
je 0x418599
mov dword [esp], eax
call dword [0x45e808]
mov dword [esi + 8], eax
test eax, eax
je 0x418678
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x4185b4
mov dword [esp], eax
call dword [0x45e808]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x418678
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4185cf
mov dword [esp], eax
call dword [0x45e808]
mov dword [esi + 0x28], eax
test eax, eax
je 0x418678
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
add dword [esp + 0x20], 1
mov dword [esi + 0x18], eax
movzx eax, byte [ebx + 0x24]
mov dword [esi + 0x1c], edx
mov byte [esi + 0x24], al
movzx eax, word [ebx + 0x30]
mov word [esi + 0x30], ax
movzx eax, byte [ebx + 0x32]
mov byte [esi + 0x32], al
mov eax, dword [ebx + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], esi
mov dword [esi], eax
mov ebx, dword [ebx]
test ebx, ebx
jne 0x418300
jmp 0x418432
mov dword [esp], esi
call ecx
jmp 0x418428
mov edx, dword [esp + 0x74]
call sym._tailmatch
test al, al
jne 0x41835d
cmp byte [ebx + 0x24], 0
jne 0x418428
mov eax, dword [ebx + 0x14]
jmp 0x418345
mov edi, dword [esp + 0x14]
test edi, edi
je 0x418665
mov eax, edi
mov edi, dword [edi]
call sym._freecookie
test edi, edi
jne 0x418658
add esp, 0x5c
xor edi, edi
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov eax, esi
mov edi, dword [esp + 0x14]
call sym._freecookie
jmp 0x418654
lea eax, [esp + 0x40]
mov dword [esp], 0x17
mov dword [esp + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
call sym._Curl_inet_pton
test eax, eax
setne byte [esp + 0x27]
jmp 0x4182d2