Function at 0x40b219
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
and dword [esp + 0x20], 0
push ebx
push esi
push edi
test eax, eax
je 0x40b6ba
lea edi, [ecx + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], eax
mov edx, dword [edi - 0x10]
mov ecx, dword [edi]
shr edx, 0xa
and edx, 8
mov dword [esp + 0x38], edx
test ecx, ecx
je 0x40b293
mov word [esp + 0x50], 0x2a3f
mov dword [esp + 0x54], ecx
call fcn.00417a42
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x58], eax
mov eax, dword [ebx]
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
or edx, 0x12
lea ecx, [esp + 0x50]
mov dword [esp + 0x60], eax
mov dword [esp + 0x6c], edx
call fcn.00417e89
test al, al
je 0x40b6a9
jmp 0x40b296
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
and dword [esp + 0x18], 0
and dword [esp + 0xc], 0
add eax, ecx
mov dword [esp + 0x3c], eax
cmp ecx, eax
jae 0x40b4b0
jmp 0x40b2ba
mov ecx, dword [esp + 0x30]
movzx eax, word [ecx]
add eax, ecx
movzx esi, word [eax]
add esi, eax
movzx edx, word [esi]
add edx, esi
mov dword [esp + 0x30], edx
movzx edx, word [ecx]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], esi
cmp edx, 4
jne 0x40b2e8
and dword [esp + 0x10], 0
jmp 0x40b319
mov eax, dword [ebp + 0x10]
push dword [eax]
lea eax, [edx - 4]
push dword [ebx]
add ecx, 4
push eax
mov eax, dword [esp + 0x44]
lea edi, [esp + 0x1c]
xor esi, esi
call fcn.0040a53f
test al, al
je 0x40b49e
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
movzx edx, word [eax]
cmp edx, 4
jne 0x40b337
cmp word [ecx], dx
jne 0x40b32d
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
jmp 0x40b331
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jmp 0x40b386
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
sub ecx, dword [esp + 0x10]
xor edi, edi
push ecx
mov ecx, dword [ebx]
add ecx, dword [esp + 0x14]
lea esi, [esp + 0x18]
push ecx
lea ecx, [edx - 4]
push ecx
lea ecx, [eax + 4]
mov eax, dword [esp + 0x44]
call fcn.0040a53f
test al, al
je 0x40b49e
mov eax, dword [esp + 0x28]
cmp word [eax], 4
mov esi, dword [esp + 0x24]
jne 0x40b37e
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jmp 0x40b386
mov eax, dword [esp + 0x10]
add dword [esp + 0x14], eax
movzx edi, word [esi]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
sub ecx, dword [esp + 0x10]
mov eax, dword [eax - 0x10]
sub edi, 4
mov dword [esp + 0x20], ecx
test al, 4
je 0x40b413
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
sub eax, ecx
add eax, edi
mov dword [esp + 0x28], eax
call fcn.00416ed5
mov dword [esp + 0x20], eax
test eax, eax
je 0x40b49e
mov edx, dword [esp + 0x10]
push edx
push dword [ebx]
push eax
call fcn.00416f41
push edi
add esi, 4
push esi
lea ecx, [eax + edx]
push ecx
call fcn.00416f41
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi]
sub ecx, dword [esp + 0x14]
add eax, edi
push ecx
mov ecx, dword [ebx]
add ecx, dword [esp + 0x18]
add eax, edx
push ecx
push eax
call fcn.00416f41
push dword [ebx]
call fcn.00416f05
mov eax, dword [esp + 0x20]
inc dword [esp + 0x2c]
mov dword [ebx], eax
mov eax, dword [esp + 0x28]
mov dword [esi], eax
jmp 0x40b49e
test al, 8
je 0x40b49e
mov eax, dword [esp + 0xc]
add ecx, edi
lea ecx, [ecx + eax + 2]
lea esi, [esp + 0x18]
call fcn.00416e90
test al, al
je 0x40b49e
mov esi, dword [esp + 0x18]
test edi, edi
je 0x40b453
mov eax, dword [esp + 0x24]
push edi
add eax, 4
push eax
mov eax, dword [esp + 0x14]
add eax, esi
push eax
call fcn.00416f41
add dword [esp + 0xc], edi
mov ecx, dword [ebx]
mov edx, dword [esp + 0x20]
add ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push ecx
add eax, esi
push eax
call fcn.00416f41
mov ecx, dword [esp + 0x1c]
test dword [ecx - 0x10], 0x100
je 0x40b47e
add dword [esp + 0xc], edx
jmp 0x40b48d
push edx
mov ebx, eax
call fcn.0041bb2f
add dword [esp + 0xc], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
mov byte [eax + esi], 0xa
inc eax
mov dword [esp + 0xc], eax
mov byte [eax + esi], 0
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x30], eax
jb 0x40b2b6
mov edi, dword [esp + 0x1c]
mov eax, dword [edi - 0x10]
xor esi, esi
test al, 8
je 0x40b5cc
cmp dword [esp + 0x18], esi
je 0x40b5cc
test eax, 0x200
je 0x40b585
push 0x3c
pop edx
push edx
push esi
lea eax, [esp + 0x58]
push eax
call fcn.00416fb8
lea eax, [esp + 0x120]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x50]
push eax
push esi
push esi
push dword [ebp + 8]
mov dword [esp + 0x60], edx
mov dword [esp + 0x74], 0x103
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp eax, 1
jne 0x40b5c1
cmp dword [esp + 0x64], esi
jbe 0x40b5c1
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 8
lea esi, [esp + 0xdc]
pop eax
call fcn.00408c1d
movzx eax, word [esp + 0x46]
push eax
movzx eax, word [esp + 0x46]
push eax
movzx eax, word [esp + 0x48]
sub eax, 0x7d0
push eax
lea eax, [esp + 0x12c]
push eax
mov eax, esi
push eax
mov edx, 0x104
lea edi, [esp + 0x23c]
call fcn.00417bf8
add esp, 0x14
push dword [esp + 0xc]
mov eax, edi
push dword [esp + 0x1c]
push eax
push 0
push 2
call fcn.004059c5
mov edi, dword [esp + 0x1c]
jmp 0x40b5c1
push dword [ebp + 8]
or eax, 0xffffffff
push esi
call fcn.00417145
mov ebx, eax
cmp ebx, esi
je 0x40b5c1
push 9
lea esi, [esp + 0x54]
pop eax
call fcn.00408c1d
push dword [esp + 0x18]
mov eax, esi
push ebx
push eax
push 0
push ebx
push 0xc9
call fcn.00405b6f
add esp, 0x18
push ebx
call fcn.00416f05
push dword [esp + 0x18]
call fcn.00416f05
xor esi, esi
cmp dword [edi - 4], esi
je 0x40b6a9
test byte [edi - 0x10], 0x10
je 0x40b660
lea eax, [esp + 0x50]
push eax
push 1
lea eax, [esp + 0xe0]
call fcn.004165fe
mov ecx, dword [edi - 4]
call fcn.00417a42
push eax
push ecx
lea eax, [esp + 0xc0]
push eax
call fcn.004181aa
test al, al
je 0x40b6a9
lea ecx, [esp + 0xd8]
mov al, byte [esp + esi + 0xb8]
call fcn.0041726d
inc esi
add ecx, 4
cmp esi, 0x10
jb 0x40b618
xor eax, eax
mov word [ecx], ax
lea eax, [esp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0x10
lea eax, [esp + 0xcc]
push eax
push 3
lea eax, [esp + 0xe4]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.0041b188
jmp 0x40b6a9
mov esi, 0x4228f4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x42290c]
call fcn.00416f05
push dword [0x422910]
call fcn.00416f05
push dword [edi - 0xc]
or eax, 0xffffffff
call fcn.00417363
mov dword [0x42290c], eax
push dword [edi - 4]
or eax, 0xffffffff
call fcn.00417363
push esi
mov dword [0x422910], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add edi, 0x1c
dec dword [esp + 0x34]
mov dword [esp + 0x1c], edi
jne 0x40b240
xor eax, eax
cmp eax, dword [esp + 0x2c]
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc