Function at 0x401848
Capabilities:
Parse url

Disassembly:
push ebp
mov ecx, 0xf
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x4c]
sub esp, 0x1e8
mov eax, dword [ebp + 0xc]
cld
mov dword [eax], 0
xor eax, eax
mov dword [ebp - 0x1f0], 0
rep stosd dword es:[edi], eax
push dword [ebp + 8]
mov dword [ebp - 0x4c], 0x3c
call sub.KERNEL32.dll_lstrlenA
mov esi, eax
lea ebx, [eax + 1]
push ebx
call fcn.00401012
push ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], eax
call fcn.00401012
pop ecx
mov dword [ebp - 0x1c], esi
pop ebx
mov dword [ebp - 0x20], eax
lea ebx, [esi + 0x92d]
cmp dword [ebp + 0x10], 0
je 0x4018b8
push dword [ebp + 0x10]
call sub.KERNEL32.dll_lstrlenA
add ebx, eax
cmp dword [ebp + 0x14], 0
je 0x401b8b
push dword [ebp + 0x14]
call sub.KERNEL32.dll_lstrlenA
lea edi, [eax + ebx + 0x80]
push edi
call fcn.00401012
pop edx
test eax, eax
mov dword [ebp - 0x1f4], eax
je 0x401903
cmp dword [ebp - 0x3c], 0
je 0x4018ee
cmp dword [ebp - 0x20], 0
jne 0x401933
cmp dword [ebp - 0x1f4], 0
je 0x401903
push dword [ebp - 0x1f4]
call fcn.00401000
pop eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40192a
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x401921
mov eax, dword [ebp - 0x1f0]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
push eax
call fcn.00401000
pop eax
jmp 0x401911
push eax
call fcn.00401000
pop eax
jmp 0x40190a
lea eax, [ebp - 0x4c]
push eax
push 0
push esi
push dword [ebp + 8]
call sub.WININET.DLL_InternetCrackUrlA
test eax, eax
je 0x4018ee
mov eax, dword [ebp - 0x3c]
cmp byte [eax], 0
je 0x4018ee
mov eax, dword [ebp - 0x20]
cmp byte [eax], 0
je 0x4018ee
cmp dword [ebp - 0x40], 4
jne 0x4018ee
lea ebx, [ebp - 0x1ec]
push ebx
call fcn.004014f0
push dword [ebp - 0x3c]
push 0x405135
push esi
push dword [ebp - 0x1f4]
call fcn.004017ae
movzx eax, word [ebp - 0x34]
push eax
push dword [ebp - 0x1f4]
push ebx
call fcn.00401598
add esp, 0x20
test eax, eax
jne 0x401b04
push dword [ebp - 0x3c]
push dword [ebp - 0x20]
mov eax, str.POST___HTTP_1.0_r_nHost:__r_n
cmp dword [ebp + 0x14], 0
je 0x401b81
push eax
push edi
push dword [ebp - 0x1f4]
call fcn.004017ae
add esp, 0x14
cmp dword [ebp + 0x10], 0
je 0x4019da
push dword [ebp + 0x10]
push 0x40516c
push edi
push dword [ebp - 0x1f4]
call fcn.004010d4
add esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x4019fd
push dword [ebp + 0x14]
call sub.KERNEL32.dll_lstrlenA
push eax
push 0x405180
push edi
push dword [ebp - 0x1f4]
call fcn.004010d4
add esp, 0x10
push str.Connection:_Close_r_n_r_n
push 0x4051d5
push edi
push dword [ebp - 0x1f4]
call fcn.004010d4
add esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x401a33
push dword [ebp + 0x14]
push 0x4051d8
push edi
push dword [ebp - 0x1f4]
call fcn.004010d4
add esp, 0x10
push dword [ebp - 0x1f4]
call sub.KERNEL32.dll_lstrlenA
push eax
push dword [ebp - 0x1f4]
push dword [ebp - 0x54]
call dword [0x406090]
add esp, 0xc
push 0x92d
push dword [ebp - 0x1f4]
push dword [ebp - 0x54]
call dword [0x406080]
mov ebx, eax
add esp, 0xc
test eax, eax
jle 0x401ac3
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
add eax, ebx
inc eax
push eax
push dword [ebp - 0x1f0]
call fcn.00401022
pop esi
pop edi
test eax, eax
je 0x401aa4
mov dword [ebp - 0x1f0], eax
mov edi, eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x1f4]
cld
add edi, dword [eax]
mov ecx, ebx
rep movsb byte es:[edi], byte [esi]
add dword [eax], ebx
jmp 0x401a51
push dword [ebp - 0x1f0]
call fcn.00401000
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1f0], 0
mov dword [edx], 2
pop eax
cmp dword [ebp - 0x1f0], 0
je 0x401b04
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
test eax, eax
je 0x401adf
mov ecx, dword [ebp - 0x1f0]
mov byte [eax + ecx], 0
mov edx, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [edx]
mov edx, eax
cmp eax, 3
jbe 0x401b04
mov ecx, dword [ebp - 0x1f0]
cmp dword [esi + ecx], 0xa0d0a0d
je 0x401b16
inc esi
lea eax, [esi + 3]
cmp eax, edx
jb 0x401aed
lea eax, [ebp - 0x1ec]
push eax
call fcn.00401514
pop eax
jmp 0x4018ee
lea ebx, [esi + 4]
mov esi, ebx
cmp ebx, edx
jae 0x401b35
mov edx, ecx
mov ecx, dword [ebp - 0x1f0]
mov al, byte [esi + ecx]
inc esi
mov byte [edx], al
inc edx
mov eax, dword [ebp + 0xc]
cmp esi, dword [eax]
jb 0x401b21
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1f0]
mov eax, dword [edx]
sub eax, ebx
mov dword [edx], eax
mov byte [eax + ecx], 0
mov eax, dword [edx]
inc eax
push eax
push ecx
call fcn.00401022
pop edx
pop ecx
test eax, eax
je 0x401b60
mov dword [ebp - 0x1f0], eax
jmp 0x401b04
push dword [ebp - 0x1f0]
call fcn.00401000
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1f0], 0
mov dword [eax], 2
pop eax
jmp 0x401b04
mov eax, str.GET___HTTP_1.0_r_nHost:__r_n
jmp 0x4019ad
mov edi, ebx
jmp 0x4018d1