Function at 0x4974b9
Capabilities:
Parse url

Disassembly:
push 0x4c
mov eax, 0x509f2e
call fcn.004cc273
mov ebx, ecx
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.004cd4d0
mov edi, dword [ebx + 4]
add esp, 0xc
mov dword [ebp - 0x58], esi
push 0x64
pop eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
mov esi, dword [edi - 0xc]
call fcn.00406ab4
push eax
push esi
push edi
lea ecx, [ebp - 0x14]
call fcn.00447e12
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 1
push eax
xor edi, edi
push edi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x49752f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [ebx], edi
jmp 0x497744
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x49756a
mov esi, dword [ebp - 0x44]
call fcn.00406ab4
push eax
push esi
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00447e12
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebx + 0x10]
call fcn.00446083
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004068bc
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4975a5
mov esi, dword [ebp - 0x28]
call fcn.00406ab4
push eax
push esi
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00447e12
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebx + 0x14]
call fcn.00446083
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004068bc
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4975f8
mov esi, dword [ebp - 0x38]
call fcn.00406ab4
push eax
push esi
push dword [ebp - 0x18]
lea ecx, [ebp - 0x10]
call fcn.00447e12
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
call fcn.0049bfcd
push eax
lea ecx, [ebx + 0x1c]
mov byte [ebp - 4], 8
call fcn.00446083
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.004068bc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004068bc
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x49764b
mov esi, dword [ebp - 0x30]
call fcn.00406ab4
push eax
push esi
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.00447e12
lea edx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x18]
call fcn.0049bfcd
push eax
lea ecx, [ebx + 0x20]
mov byte [ebp - 4], 0xb
call fcn.00446083
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xa
call fcn.004068bc
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004068bc
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x497686
mov esi, dword [ebp - 0x20]
call fcn.00406ab4
push eax
push esi
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.00447e12
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebx + 0x18]
call fcn.00446083
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004068bc
mov ecx, dword [ebp - 0x4c]
mov ax, word [ebp - 0x40]
mov dword [ebx + 8], ecx
mov word [ebx + 0xc], ax
cmp ecx, 5
jne 0x497744
lea esi, [ebx + 0x14]
mov eax, dword [esi]
cmp dword [eax - 0xc], 3
jle 0x497744
push edi
mov ecx, esi
call fcn.0046a1e0
push 0x5c
pop ecx
cmp ax, cx
jne 0x497744
push 1
mov ecx, esi
call fcn.0046a1e0
push 0x5c
pop ecx
cmp ax, cx
jne 0x497744
push 2
mov ecx, esi
call fcn.0046a1e0
cmp ax, 0x3f
je 0x497744
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax - 0xc]
add eax, 0xfffffffe
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00447b17
add ebx, 0x10
mov byte [ebp - 4], 0xe
push eax
mov ecx, ebx
call fcn.00446083
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004068bc
push edi
push 0x52686c
mov ecx, ebx
call fcn.0042e110
test eax, eax
jle 0x497744
push eax
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.00447ac6
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xf
call fcn.00446083
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004068bc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004068bc
mov eax, edi
call fcn.004cc23c
ret