Function at 0x4998f0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b43cb
mov eax, dword fs:[0]
push eax
mov eax, 0x1824
call fcn.0046e870
mov eax, dword [0x4e0240]
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 eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x17e0], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x17cc], ecx
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x17e4], eax
mov eax, esi
mov dword [ebp - 0x17d4], edx
mov dword [ebp - 0x17dc], ecx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x499960
sub eax, edx
sar eax, 1
cmp eax, 0xbb8
ja 0x499a08
xor eax, eax
mov dword [ebp - 0x17d0], 0xbdc
mov dword [ebp - 0x17f4], eax
mov dword [ebp - 0x17f0], eax
mov dword [ebp - 0x17ec], eax
mov edi, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlW]
push 0xc000000
lea edx, [ebp - 0x17d0]
mov dword [ebp - 4], eax
push edx
lea eax, [ebp - 0x17c8]
push eax
push esi
call edi
test eax, eax
jne 0x499a26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x499a08
mov ecx, dword [ebp - 0x17d0]
lea edx, [ecx + ecx]
push 0
push edx
lea ecx, [ebp - 0x17f4]
call fcn.00413c00
mov eax, dword [ebp - 0x17f4]
push 0xc000000
lea ecx, [ebp - 0x17d0]
push ecx
push eax
push esi
mov dword [ebp - 0x17d8], eax
call edi
test eax, eax
jne 0x499a32
lea ecx, [ebp - 0x17f4]
call fcn.0040180c
xor eax, eax
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 fcn.0046e452
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x17c8]
mov dword [ebp - 0x17d8], edx
push 0x38
lea eax, [ebp - 0x182c]
push 0
push eax
call fcn.0046e590
mov eax, dword [ebx]
mov dword [ebp - 0x1830], 0x3c
mov dword [ebp - 0x181c], 0x100
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x101
add esp, 0xc
or ecx, edx
jge 0x499a7c
push 0x101
mov ecx, ebx
call fcn.00401485
mov eax, dword [ebx]
mov esi, dword [ebp - 0x17e0]
mov dword [ebp - 0x1820], eax
mov eax, dword [esi]
mov dword [ebp - 0x1800], 0xbb8
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0xbb9
or ecx, edx
jge 0x499ab7
push 0xbb9
mov ecx, esi
call fcn.00401485
mov eax, dword [esi]
mov edi, dword [ebp - 0x17cc]
mov dword [ebp - 0x1804], eax
mov eax, dword [edi]
mov dword [ebp - 0x1810], 0x80
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x81
or ecx, edx
jge 0x499af2
push 0x81
mov ecx, edi
call fcn.00401485
mov eax, dword [edi]
mov ecx, dword [ebp - 0x17d4]
mov dword [ebp - 0x1814], eax
mov eax, dword [ecx]
mov dword [ebp - 0x1808], 0x80
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x81
or edx, eax
jge 0x499b30
push 0x81
call fcn.00401485
mov ecx, dword [ebp - 0x17d4]
mov eax, dword [ebp - 0x17d8]
mov ecx, dword [ecx]
lea edx, [ebp - 0x1830]
push edx
push 0
push 0
push eax
mov dword [ebp - 0x180c], ecx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
mov dword [ebp - 0x17cc], eax
test eax, eax
je 0x499b78
mov cx, word [ebp - 0x1818]
mov edx, dword [ebp - 0x17dc]
mov eax, dword [ebp - 0x1824]
mov word [edx], cx
mov ecx, dword [ebp - 0x17e4]
mov dword [ecx], eax
mov eax, dword [ebx]
mov ecx, dword [eax - 8]
test eax, eax
je 0x499b93
push ecx
push eax
call fcn.00470c6c
add esp, 8
test eax, eax
js 0x499c50
mov ecx, dword [ebx]
cmp eax, dword [ecx - 8]
jg 0x499c50
mov dword [ecx - 0xc], eax
mov edx, dword [ebx]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x499bc4
push ecx
push eax
call fcn.00470c6c
add esp, 8
test eax, eax
js 0x499c50
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x499c50
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x499bf1
push ecx
push eax
call fcn.00470c6c
add esp, 8
test eax, eax
js 0x499c50
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x499c50
mov esi, dword [ebp - 0x17d4]
mov dword [ecx - 0xc], eax
mov edx, dword [edi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x499c20
push ecx
push eax
call fcn.00470c6c
add esp, 8
test eax, eax
js 0x499c50
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x499c50
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp - 0x17f4]
test eax, eax
je 0x499c45
push eax
call fcn.0046d5e2
add esp, 4
mov eax, dword [ebp - 0x17cc]
jmp 0x499a0a
push 0x80070057
call fcn.00401000
int3