Function at 0x498040
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506381
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
lea ebx, [ecx + 0x18]
mov dword [ebp - 0x38], 0
push ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 1
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov dword [ebp - 4], eax
mov word [edi], cx
mov dword [ebp - 0x38], eax
cmp dword [esi + 0x10], ecx
je 0x49828b
cmp dword [esi + 0x14], 8
jb 0x4980bc
mov eax, dword [esi]
jmp 0x4980be
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x49828b
push 0x3c
lea edx, [ebp - 0x78]
push 0
push edx
call fcn.004e15a0
mov ebx, dword [esi + 0x10]
xor ecx, ecx
lea edi, [ebx + 1]
mov eax, edi
mov edx, 2
mul edx
seto cl
mov dword [ebp - 0x78], 0x3c
neg ecx
or ecx, eax
push ecx
call fcn.0041becb
add esp, 0x10
mov dword [ebp - 0x68], eax
test eax, eax
je 0x49811c
lea ecx, [ebx + ebx + 2]
push ecx
push 0
push eax
call fcn.004e15a0
add esp, 0xc
mov dword [ebp - 0x64], edi
cmp byte [ebp + 0x10], 0
je 0x498157
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041becb
add esp, 4
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x498157
lea ecx, [ebx + ebx + 2]
push ecx
push 0
push eax
call fcn.004e15a0
add esp, 0xc
mov dword [ebp - 0x48], edi
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x498163
mov esi, dword [esi]
lea edx, [ebp - 0x78]
push edx
push 0
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
mov eax, dword [ebp - 0x68]
je 0x498268
test eax, eax
je 0x498275
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x498268
push ecx
xor edx, edx
mov esi, 7
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
call fcn.00406300
mov ebx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00406280
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], edi
jb 0x4981d5
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00406ec9
add esp, 4
cmp byte [ebp + 0x10], 0
je 0x498265
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
push eax
xor edx, edx
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
call fcn.00406300
push 1
push 0
push 0x528440
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.0040a410
cmp eax, 0xffffffff
je 0x498224
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041a8e0
push 1
push 0
push 0x526f48
lea ecx, [ebp - 0x2c]
call fcn.0040a410
cmp eax, 0xffffffff
je 0x498245
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x2c]
call fcn.0041a8e0
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x2c]
push edx
mov ecx, ebx
call fcn.0040e6b0
cmp dword [ebp - 0x18], edi
jb 0x498265
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00406ec9
add esp, 4
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x498275
push eax
call fcn.004188d7
add esp, 4
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x498285
push eax
call fcn.004188d7
add esp, 4
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call int.00401316
mov esp, ebp
pop ebp
ret 0xc