Function at 0x412174
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 0x412615
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 0x4121ee
mov word [esp + 0x50], 0x2a3f
mov dword [esp + 0x54], ecx
call fcn.00405d23
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.0040616a
test al, al
je 0x412604
jmp 0x4121f1
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 0x41240b
jmp 0x412215
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 0x412243
and dword [esp + 0x10], 0
jmp 0x412274
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.0041149a
test al, al
je 0x4123f9
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
movzx edx, word [eax]
cmp edx, 4
jne 0x412292
cmp word [ecx], dx
jne 0x412288
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
jmp 0x41228c
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jmp 0x4122e1
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.0041149a
test al, al
je 0x4123f9
mov eax, dword [esp + 0x28]
cmp word [eax], 4
mov esi, dword [esp + 0x24]
jne 0x4122d9
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jmp 0x4122e1
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 0x41236e
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
sub eax, ecx
add eax, edi
mov dword [esp + 0x28], eax
call fcn.004051b6
mov dword [esp + 0x20], eax
test eax, eax
je 0x4123f9
mov edx, dword [esp + 0x10]
push edx
push dword [ebx]
push eax
call fcn.00405222
push edi
add esi, 4
push esi
lea ecx, [eax + edx]
push ecx
call fcn.00405222
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.00405222
push dword [ebx]
call fcn.004051e6
mov eax, dword [esp + 0x20]
inc dword [esp + 0x2c]
mov dword [ebx], eax
mov eax, dword [esp + 0x28]
mov dword [esi], eax
jmp 0x4123f9
test al, 8
je 0x4123f9
mov eax, dword [esp + 0xc]
add ecx, edi
lea ecx, [ecx + eax + 2]
lea esi, [esp + 0x18]
call fcn.00405171
test al, al
je 0x4123f9
mov esi, dword [esp + 0x18]
test edi, edi
je 0x4123ae
mov eax, dword [esp + 0x24]
push edi
add eax, 4
push eax
mov eax, dword [esp + 0x14]
add eax, esi
push eax
call fcn.00405222
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.00405222
mov ecx, dword [esp + 0x1c]
test dword [ecx - 0x10], 0x100
je 0x4123d9
add dword [esp + 0xc], edx
jmp 0x4123e8
push edx
mov ebx, eax
call fcn.00409e13
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 0x412211
mov edi, dword [esp + 0x1c]
mov eax, dword [edi - 0x10]
xor esi, esi
test al, 8
je 0x412527
cmp dword [esp + 0x18], esi
je 0x412527
test eax, 0x200
je 0x4124e0
push 0x3c
pop edx
push edx
push esi
lea eax, [esp + 0x58]
push eax
call fcn.00405299
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 0x41251c
cmp dword [esp + 0x64], esi
jbe 0x41251c
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 8
lea esi, [esp + 0xdc]
pop eax
call fcn.0040f34a
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.00405ed9
add esp, 0x14
push dword [esp + 0xc]
mov eax, edi
push dword [esp + 0x1c]
push eax
push 0
push 2
call fcn.004186ba
mov edi, dword [esp + 0x1c]
jmp 0x41251c
push dword [ebp + 8]
or eax, 0xffffffff
push esi
call fcn.00405426
mov ebx, eax
cmp ebx, esi
je 0x41251c
push 9
lea esi, [esp + 0x54]
pop eax
call fcn.0040f34a
push dword [esp + 0x18]
mov eax, esi
push ebx
push eax
push 0
push ebx
push 0xc9
call fcn.00418864
add esp, 0x18
push ebx
call fcn.004051e6
push dword [esp + 0x18]
call fcn.004051e6
xor esi, esi
cmp dword [edi - 4], esi
je 0x412604
test byte [edi - 0x10], 0x10
je 0x4125bb
lea eax, [esp + 0x50]
push eax
push 1
lea eax, [esp + 0xe0]
call fcn.0041cd2b
mov ecx, dword [edi - 4]
call fcn.00405d23
push eax
push ecx
lea eax, [esp + 0xc0]
push eax
call fcn.0040648b
test al, al
je 0x412604
lea ecx, [esp + 0xd8]
mov al, byte [esp + esi + 0xb8]
call fcn.0040554e
inc esi
add ecx, 4
cmp esi, 0x10
jb 0x412573
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.00409465
jmp 0x412604
mov esi, 0x4233fc
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x423414]
call fcn.004051e6
push dword [0x423418]
call fcn.004051e6
push dword [edi - 0xc]
or eax, 0xffffffff
call fcn.00405644
mov dword [0x423414], eax
push dword [edi - 4]
or eax, 0xffffffff
call fcn.00405644
push esi
mov dword [0x423418], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add edi, 0x1c
dec dword [esp + 0x34]
mov dword [esp + 0x1c], edi
jne 0x41219b
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