Function at 0x409170
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x451270]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
call fcn.004087e0
cmp dword [edi + 0x10], 0
jne 0x4091ab
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret 4
push edi
mov ecx, esi
call fcn.00408bf0
test al, al
jne 0x409306
push 0x3c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00421940
add esp, 0xc
mov dword [ebp - 0x80], 0x3c
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x6c], 1
mov dword [ebp - 0x48], 1
jb 0x409206
mov eax, dword [edi]
jmp 0x409208
mov eax, edi
mov ebx, dword [sym.imp.WININET.dll_InternetCrackUrlW]
lea ecx, [ebp - 0x80]
push ecx
push 0
push dword [edi + 0x10]
push eax
call ebx
test eax, eax
je 0x40931b
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call fcn.004088a0
cmp dword [esi + 0xc4], 5
jne 0x409251
xor eax, eax
cmp dword [esi + 0x40], eax
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x28], 0
je 0x409271
mov ecx, esi
call fcn.00409600
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x10], 0
je 0x409196
cmp dword [esi + 0x40], 0
je 0x409196
cmp dword [esi + 0x44], 8
mov dword [ebp - 0x84], 0
jb 0x40929a
mov eax, dword [esi + 0x30]
jmp 0x40929d
lea eax, [esi + 0x30]
push 0xa
lea ecx, [ebp - 0x84]
push ecx
push eax
call fcn.004235c4
mov ebx, eax
add esp, 0xc
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x409196
xor ecx, ecx
cmp cx, word [eax]
jne 0x409196
cmp ebx, 0xffff
ja 0x409196
lea ecx, [esi + 0x30]
call fcn.00409a00
lea ecx, [esi + 0x18]
mov dword [esi + 0xc0], ebx
cmp ecx, esi
je 0x4092f5
push 0xffffffffffffffff
push 0
push esi
call fcn.00401da0
mov ecx, esi
mov dword [esi + 0xc4], 0xffffffff
call fcn.00409a00
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00421184
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x10], 0
jne 0x409196
push str.http:__
lea ecx, [ebp - 0x2c]
call fcn.004055b0
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.00405800
lea ecx, [ebp - 0x80]
call fcn.00408ba0
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x80]
push ecx
push 0
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call ebx
test eax, eax
jne 0x409369
xor bl, bl
jmp 0x4094c0
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call fcn.004088a0
mov ecx, esi
mov dword [esi + 0xc4], 0xffffffff
call fcn.00409a00
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
movq qword [ebp - 0x14], xmm0
lea ebx, [esi + 0x18]
push ecx
mov ecx, ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.0040ec10
mov ecx, dword [ebp - 0x10]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x14]
add esp, 8
sub ecx, edi
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp esi, 2
jae 0x4093e0
xor bl, bl
jmp 0x4094b8
lea eax, [esi - 1]
lea eax, [eax + eax*2]
lea eax, [edi + eax*8]
push eax
lea ecx, [ebp - 0x44]
call fcn.00403810
lea ecx, [ebp - 0x44]
call fcn.00408750
test al, al
je 0x4094a7
cmp dword [ebp - 0x30], 8
lea eax, [ebp - 0x44]
mov ecx, 0x80
cmovae eax, dword [ebp - 0x44]
cmp word [eax], cx
jae 0x40949f
lea eax, [esi - 1]
xor ebx, ebx
mov dword [ebp - 0x84], eax
test eax, eax
je 0x40949f
lea edx, [ecx + 0x7f]
lea ecx, [ecx]
xor esi, esi
cmp dword [edi + 0x10], esi
jbe 0x409497
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x409443
mov ecx, dword [edi]
jmp 0x409445
mov ecx, edi
cmp word [ecx + esi*2], dx
jae 0x40948b
cmp eax, 8
jb 0x409454
mov eax, dword [edi]
jmp 0x409456
mov eax, edi
movzx eax, word [eax + esi*2]
push eax
call fcn.00423af3
add esp, 4
test eax, eax
jne 0x409486
cmp dword [edi + 0x14], 8
jb 0x409471
mov eax, dword [edi]
jmp 0x409473
mov eax, edi
cmp word [eax + esi*2], 0x2d
jne 0x4094a3
test esi, esi
je 0x4094a3
mov eax, dword [edi + 0x10]
dec eax
cmp esi, eax
je 0x4094a3
mov edx, 0xff
inc esi
cmp esi, dword [edi + 0x10]
jb 0x409437
mov eax, dword [ebp - 0x84]
inc ebx
add edi, 0x18
cmp ebx, eax
jb 0x409430
mov bl, 1
jmp 0x4094b0
xor bl, bl
jmp 0x4094b0
mov ecx, ebx
call fcn.004094f0
mov bl, al
lea ecx, [ebp - 0x44]
call fcn.00403840
lea ecx, [ebp - 0x14]
call fcn.004056a0
cmp dword [ebp - 0x18], 8
jb 0x4094d1
push dword [ebp - 0x2c]
call fcn.00420949
add esp, 4
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421184
mov esp, ebp
pop ebp
ret 4