Function at 0x40a180
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bec9e
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x507074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.004025a0
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], 2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.004025a0
lea edi, [eax + 0x10]
mov dword [ebp + 8], edi
mov byte [ebp - 4], 4
mov eax, dword [ebx]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
jne 0x40a703
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x30], 0
push eax
mov eax, dword [ebp - 0x14]
xorps xmm0, xmm0
push 0
push 0
movlpd qword [ebp - 0x58], xmm0
push dword [eax]
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x2c], 0x104
mov dword [ebp - 0x5c], 0x3c
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x40a2b7
call fcn.004043d0
test eax, eax
je 0x40a819
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ebx, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 2
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a287
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40a2a3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x14], eax
call fcn.004043d0
mov ecx, eax
test ecx, ecx
je 0x40a819
cmp dword [ebp - 0x14], 0
jne 0x40a2e0
test edi, edi
jne 0x40a80f
mov eax, dword [ecx]
push 2
push edi
call dword [eax]
test eax, eax
je 0x40a80a
lea edi, [eax + 0x10]
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0x20]
test eax, eax
js 0x40a80f
cmp eax, dword [edi - 8]
jg 0x40a80f
mov dword [edi - 0xc], eax
xor ecx, ecx
add eax, eax
mov word [edi + eax], cx
test eax, eax
je 0x40a34b
test edi, edi
je 0x40a33b
mov ecx, dword [ebp - 0x14]
push eax
test ecx, ecx
je 0x40a330
push ecx
push edi
call fcn.00498000
add esp, 0xc
jmp 0x40a34b
push 0
push edi
call fcn.00498580
add esp, 0xc
call fcn.0049b9dd
mov dword [eax], 0x16
call fcn.0049b8df
mov byte [ebp - 4], 9
mov edx, 0x2f
cmp dword [ebp - 0x50], 5
mov ecx, 0x5c
mov eax, dword [edi - 0xc]
cmove edx, ecx
mov dword [ebp - 0x14], edx
test eax, eax
jle 0x40a3c4
lea ecx, [eax - 1]
test ecx, ecx
js 0x40a80f
cmp ecx, eax
jg 0x40a80f
movzx eax, word [edi + ecx*2]
cmp ax, dx
jne 0x40a3c4
push ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040a8d0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x10]
push eax
call fcn.00409440
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a3be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
push edx
push edi
call fcn.00497ba3
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x40a41b
sub ecx, edi
sar ecx, 1
js 0x40a41b
mov eax, dword [edi - 0xc]
sub eax, ecx
lea ecx, [ebp - 0x10]
dec eax
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00408590
mov byte [ebp - 4], 0xc
lea ecx, [ebp + 0xc]
push eax
call fcn.00409440
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a418
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x50]
cmp eax, 3
je 0x40a43f
cmp eax, 4
je 0x40a43f
cmp eax, 1
jne 0x40a584
cmp dword [esi - 0xc], 0
jle 0x40a584
push 0x3b
jmp 0x40a44b
cmp dword [esi - 0xc], 0
jle 0x40a584
push 0x3f
push esi
call fcn.00497af3
add esp, 8
test eax, eax
je 0x40a584
sub eax, esi
sar eax, 1
test eax, eax
jle 0x40a483
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040a8d0
mov byte [ebp - 4], 0xe
lea ecx, [ebp + 0xc]
push eax
call fcn.00409440
jmp 0x40a563
jne 0x40a584
mov eax, dword [esi - 0xc]
lea ecx, [ebp + 0xc]
dec eax
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00408590
mov byte [ebp - 4], 0x10
lea ecx, [ebp + 0xc]
push eax
call fcn.00409440
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a4c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], 0
jle 0x40a584
push 0x26
push esi
call fcn.00497af3
add esp, 8
test eax, eax
je 0x40a524
sub eax, esi
sar eax, 1
test eax, eax
jle 0x40a524
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0xc]
call fcn.0040a8d0
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0xc]
push eax
call fcn.00409440
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a521
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], 0
jle 0x40a584
push 0x3d
push esi
call fcn.00497af3
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x40a584
sub ecx, esi
sar ecx, 1
test ecx, ecx
jle 0x40a584
mov eax, dword [esi - 0xc]
sub eax, ecx
lea ecx, [ebp + 0xc]
dec eax
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00408590
mov byte [ebp - 4], 0x14
lea ecx, [ebp + 0xc]
push eax
call fcn.00409440
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a581
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
call fcn.004043d0
test eax, eax
je 0x40a819
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x14]
push 0x4e13e4
call fcn.00403470
test al, al
jne 0x40a5c2
push 9
push 0x4e13e4
lea ecx, [ebp - 0x14]
call fcn.004035e0
mov byte [ebp - 4], 0x17
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x40a5ff
test ebx, ebx
js 0x40a80f
cmp ebx, ecx
jg 0x40a80f
movzx eax, word [eax + ebx*2]
lea ecx, [ebp + 0xc]
push 0x5f
push eax
call fcn.0040f180
mov eax, dword [ebp - 0x14]
inc ebx
mov ecx, dword [eax - 0xc]
cmp ebx, ecx
jl 0x40a5d2
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 9
or ebx, 0xffffffff
lea edx, [eax - 0x10]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a61d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004043d0
test eax, eax
je 0x40a819
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x14]
push str..aiu
call fcn.00403470
test al, al
jne 0x40a65b
push 4
push str..aiu
lea ecx, [ebp - 0x14]
call fcn.004035e0
mov byte [ebp - 4], 0x1a
push 0x2e
push esi
call fcn.00497ba3
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x40a697
sub ecx, esi
sar ecx, 1
js 0x40a697
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp + 0xc]
call fcn.0040d010
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0xc]
push dword [eax - 0xc]
push eax
call fcn.00402420
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], 0
jle 0x40a6b5
push 0x2e
push esi
call fcn.00497af3
add esp, 8
test eax, eax
je 0x40a6b5
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x40a6c7
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0xc]
push dword [eax - 0xc]
push eax
call fcn.00402420
mov esi, dword [ebp + 0xc]
mov byte [ebp - 4], 9
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a6e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40a700
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 8]
mov ecx, dword [esi - 0xc]
cmp ecx, 2
jb 0x40a77c
test ecx, ecx
js 0x40a80f
cmp word [esi], 0x5c
jne 0x40a72b
cmp ecx, 1
jl 0x40a80f
cmp word [esi + 2], 0x5c
jne 0x40a734
jmp 0x40a73b
cmp ecx, 1
jl 0x40a80f
cmp word [esi + 2], 0x3a
jne 0x40a77c
add esi, 0xfffffff0
mov ecx, esi
call fcn.004025a0
mov ecx, dword [ebp - 0x18]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40a773
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
jmp 0x40a7e3
cmp dword [edi - 0xc], 0
lea ecx, [ebp + 8]
je 0x40a798
call fcn.0040e420
push dword [esi - 0xc]
lea ecx, [ebp + 8]
push esi
call fcn.00402420
jmp 0x40a7a1
lea eax, [ebp + 0xc]
push eax
call fcn.00409440
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
mov ecx, edi
call fcn.004025a0
mov ecx, dword [ebp - 0x18]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c], 1
mov byte [ebp - 4], 2
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40a7d9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40a7f5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00402590
push 0x80070057
call fcn.00402570
push 0x80004005
call fcn.00402570
int3