Function at 0x49af40
Capabilities:
Parse url

Disassembly:
push 0xffffffffffffffff
push 0x540aa6
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x5a8cf0]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0xa8], 1
call fcn.00488940
push 0x38
lea eax, [esp + 0x64]
push ebx
push eax
mov byte [esp + 0xb4], 2
mov dword [esp + 0x68], ebx
call fcn.00516810
add esp, 0xc
lea ecx, [esp + 0xb4]
call fcn.00488680
mov esi, eax
push esi
lea ecx, [esp + 0x40]
call fcn.00489720
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0xac], 3
call fcn.00489720
push esi
lea ecx, [esp + 0x50]
mov byte [esp + 0xac], 4
call fcn.00489720
push esi
lea ecx, [esp + 0x58]
mov byte [esp + 0xac], 5
call fcn.00489720
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0xac], 6
call fcn.00489720
push esi
lea ecx, [esp + 0x38]
mov byte [esp + 0xac], 7
call fcn.00489720
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa8], 8
mov dword [esp + 0x5c], 0x3c
mov dword [esp + 0x94], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x64], esi
call fcn.00489670
lea ecx, [esp + 0x2c]
mov dword [esp + 0x88], eax
call fcn.00489670
lea ecx, [esp + 0x54]
mov dword [esp + 0x90], eax
call fcn.00489670
lea ecx, [esp + 0x34]
mov dword [esp + 0x6c], eax
call fcn.00489670
lea ecx, [esp + 0x4c]
mov dword [esp + 0x80], eax
call fcn.00489670
lea ecx, [esp + 0x24]
mov dword [esp + 0x60], eax
call fcn.00489670
lea ecx, [esp + 0x5c]
push ecx
push ebx
push ebx
lea ecx, [esp + 0xc0]
mov dword [esp + 0x84], eax
call fcn.00488510
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x49b0d6
call fcn.004888c0
mov esi, dword [esp + 0xb0]
push eax
mov ecx, esi
call fcn.004886b0
jmp 0x49b323
lea ecx, [esp + 0x24]
call fcn.00489670
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x49b0e2
sub eax, edx
sar eax, 1
jne 0x49b0fb
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
lea ecx, [esp + 0x34]
call fcn.00489670
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x49b107
sub eax, edx
sar eax, 1
jne 0x49b126
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
lea ecx, [esp + 0x2c]
call fcn.00489670
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x49b132
sub eax, edx
sar eax, 1
jne 0x49b151
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x49b187
push 4
push str.file
push eax
call fcn.0051a03d
add esp, 0xc
test eax, eax
jne 0x49b187
mov eax, dword [esp + 0x88]
cmp eax, ebx
je 0x49b187
push eax
lea ecx, [esp + 0x18]
call fcn.004020d0
jmp 0x49b310
lea ecx, [esp + 0x3c]
call fcn.00489670
push eax
lea ecx, [esp + 0x14]
call fcn.00488980
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0xb0], 9
call fcn.004886b0
lea eax, [esp + 0x20]
push eax
call fcn.0049adf0
add esp, 8
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xac], 0xa
call fcn.00488590
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8], 9
call fcn.004884e0
push str.kCFAllocatorDefault
call fcn.004d0400
add esp, 4
push 0x8000100
push ebx
push ebx
lea ecx, [esp + 0x1c]
mov edi, eax
call fcn.00488530
mov ecx, dword [edi]
push eax
push ecx
call fcn.004d02a0
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x49b2ff
push edi
lea ecx, [esp + 0x14]
call fcn.00423730
add esi, esi
push esi
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x18]
call fcn.0040d490
push ebx
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xb0], 0xb
call fcn.0040d490
lea ecx, [esp + 0x98]
mov byte [esp + 0xa8], 0xc
call fcn.00489670
lea ecx, [esp + 0x10]
mov dword [esp + 0x88], eax
call fcn.00488680
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x90], eax
mov dword [esp + 0x20], esi
call fcn.00489670
push eax
push ebx
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.WININET.dll_InternetCreateUrlW]
test eax, eax
je 0x49b2d1
lea ecx, [esp + 0x44]
call fcn.00489670
push eax
lea ecx, [esp + 0x1c]
call fcn.00488980
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xac], 0xd
call fcn.00488590
lea ecx, [esp + 0x18]
mov byte [esp + 0xa8], 0xc
call fcn.004884e0
push edi
call fcn.004cf770
add esp, 4
lea ecx, [esp + 0x98]
mov byte [esp + 0xa8], 0xb
call fcn.00489940
lea ecx, [esp + 0x44]
mov byte [esp + 0xa8], 9
call fcn.00489940
lea ecx, [esp + 0x10]
mov byte [esp + 0xa8], 8
call fcn.004884e0
mov esi, dword [esp + 0xb0]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004886b0
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], 1
mov byte [esp + 0xa8], 7
call fcn.00489940
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 6
call fcn.00489940
lea ecx, [esp + 0x54]
mov byte [esp + 0xa8], 5
call fcn.00489940
lea ecx, [esp + 0x4c]
mov byte [esp + 0xa8], 4
call fcn.00489940
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa8], 3
call fcn.00489940
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa8], 2
call fcn.00489940
lea ecx, [esp + 0x14]
mov byte [esp + 0xa8], 1
call fcn.004884e0
lea ecx, [esp + 0xb4]
mov byte [esp + 0xa8], bl
call fcn.004884e0
mov eax, esi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x9c
ret