Function at 0x1004f2d0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100522e0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x1006f184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp + 8]
push edi
lea ecx, [ebx + 0x3c]
call fcn.1000b570
push 0x38
lea eax, [ebp - 0x58]
push 0
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [edi]
add esp, 0xc
mov esi, 1
lea edx, [ebp - 0x5c]
push edx
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov ecx, dword [eax - 8]
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x1004f367
mov byte [ebx + 4], al
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x50]
mov dword [ebx + 0x34], eax
test ecx, ecx
je 0x1004f3e0
mov eax, dword [ebp - 0x54]
mov esi, dword [0x1006f9d0]
mov edi, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
test eax, eax
je 0x1004f3b6
push eax
lea ecx, [ebp - 0x10]
call fcn.10001e40
test eax, eax
je 0x1004f3b3
lea eax, [edi + edi]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x1004f3b3
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
push eax
push edx
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x1004f3b6
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 8]
mov dword [ebp - 4], 0
call fcn.1000b570
lea ecx, [esi - 0xc]
mov dword [ebp - 4], 0xffffffff
cmp ecx, dword [0x1006f9cc]
je 0x1004f421
add esi, 0xfffffff4
jmp 0x1004f40d
mov edi, dword [0x1006f9d0]
mov dword [ebp - 0x18], edi
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebx + 8]
mov dword [ebp - 4], esi
call fcn.1000b570
lea eax, [edi - 0xc]
mov dword [ebp - 4], 0xffffffff
cmp eax, dword [0x1006f9cc]
je 0x1004f421
lea esi, [edi - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004f421
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp - 0x40]
mov esi, dword [0x1006f9d0]
test ecx, ecx
je 0x1004f488
mov eax, dword [ebp - 0x3c]
mov edi, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
test eax, eax
je 0x1004f46a
push eax
lea ecx, [ebp - 0x10]
call fcn.10001e40
test eax, eax
je 0x1004f467
lea eax, [edi + edi]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x1004f467
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
push eax
push edx
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x1004f46a
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x10]
mov dword [ebp - 4], 2
call fcn.1000b570
lea ecx, [esi - 0xc]
cmp ecx, dword [0x1006f9cc]
jmp 0x1004f4a7
mov dword [ebp - 0x18], esi
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebx + 0x10]
mov dword [ebp - 4], 3
call fcn.1000b570
lea eax, [esi - 0xc]
cmp eax, dword [0x1006f9cc]
mov dword [ebp - 4], 0xffffffff
je 0x1004f4c7
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004f4c7
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp - 0x38]
mov esi, dword [0x1006f9d0]
test ecx, ecx
je 0x1004f531
mov eax, dword [ebp - 0x34]
mov edi, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
test eax, eax
je 0x1004f510
push eax
lea ecx, [ebp - 0x10]
call fcn.10001e40
test eax, eax
je 0x1004f50d
lea eax, [edi + edi]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x1004f50d
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
push eax
push edx
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x1004f510
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x14]
mov dword [ebp - 4], 4
call fcn.1000b570
lea ecx, [esi - 0xc]
or edi, 0xffffffff
cmp ecx, dword [0x1006f9cc]
jmp 0x1004f553
mov dword [ebp - 0x18], esi
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebx + 0x14]
mov dword [ebp - 4], 5
call fcn.1000b570
lea eax, [esi - 0xc]
or edi, 0xffffffff
cmp eax, dword [0x1006f9cc]
mov dword [ebp - 4], edi
je 0x1004f56f
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004f56f
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp - 0x4c]
mov esi, dword [0x1006f9d0]
test ecx, ecx
je 0x1004f5dd
mov eax, dword [ebp - 0x48]
mov edi, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
test eax, eax
je 0x1004f5b8
push eax
lea ecx, [ebp - 0x10]
call fcn.10001e40
test eax, eax
je 0x1004f5b5
lea eax, [edi + edi]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x1004f5b5
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
push eax
push edx
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x1004f5b8
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0xc]
mov dword [ebp - 4], 6
call fcn.1000b570
lea ecx, [esi - 0xc]
cmp ecx, dword [0x1006f9cc]
mov dword [ebp - 4], 0xffffffff
jmp 0x1004f5ff
mov dword [ebp - 0x18], esi
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebx + 0xc]
mov dword [ebp - 4], 7
call fcn.1000b570
lea eax, [esi - 0xc]
cmp eax, dword [0x1006f9cc]
mov dword [ebp - 4], edi
je 0x1004f618
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004f618
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp - 0x30]
mov esi, dword [0x1006f9d0]
test ecx, ecx
je 0x1004f67f
mov eax, dword [ebp - 0x2c]
mov edi, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
test eax, eax
je 0x1004f661
push eax
lea ecx, [ebp - 0x10]
call fcn.10001e40
test eax, eax
je 0x1004f65e
lea eax, [edi + edi]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x1004f65e
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
push eax
push edx
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x1004f661
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebx + 0x18]
mov dword [ebp - 4], 8
call fcn.1000b570
lea ecx, [esi - 0xc]
cmp ecx, dword [0x1006f9cc]
jmp 0x1004f69e
mov dword [ebp - 0x18], esi
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebx + 0x18]
mov dword [ebp - 4], 9
call fcn.1000b570
lea eax, [esi - 0xc]
cmp eax, dword [0x1006f9cc]
mov dword [ebp - 4], 0xffffffff
je 0x1004f6be
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004f6be
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp + 8]
add edx, edx
sub edx, dword [ecx]
lea eax, [ebp - 0x18]
add edx, dword [ebp - 0x30]
sar edx, 1
push edx
push 0
push eax
call fcn.10010170
push eax
lea ecx, [ebx + 0x24]
mov dword [ebp - 4], 0xa
call fcn.1000b570
mov eax, dword [ebp - 0x18]
lea ecx, [eax - 0xc]
mov dword [ebp - 4], 0xffffffff
cmp ecx, dword [0x1006f9cc]
je 0x1004f71b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004f71b
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov ecx, dword [ebp - 0x28]
mov esi, dword [0x1006f9d0]
test ecx, ecx
je 0x1004f784
mov eax, dword [ebp - 0x24]
mov edi, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
test eax, eax
je 0x1004f764
push eax
lea ecx, [ebp - 0x10]
call fcn.10001e40
test eax, eax
je 0x1004f761
lea eax, [edi + edi]
lea edx, [eax + 2]
cmp edx, eax
jb 0x1004f761
mov esi, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x1004f764
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
lea edi, [ebx + 0x1c]
push ecx
mov ecx, edi
mov dword [ebp - 4], 0xb
call fcn.1000b570
lea edx, [esi - 0xc]
cmp edx, dword [0x1006f9cc]
jmp 0x1004f7a5
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x18]
lea edi, [ebx + 0x1c]
push eax
mov ecx, edi
mov dword [ebp - 4], 0xc
call fcn.1000b570
lea ecx, [esi - 0xc]
cmp ecx, dword [0x1006f9cc]
mov dword [ebp - 4], 0xffffffff
je 0x1004f7c5
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004f7c5
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dx, word [ebp - 0x44]
mov ecx, dword [ebp + 8]
mov word [ebx + 0x38], dx
mov edx, dword [ebp - 0x30]
sub edx, dword [ecx]
lea eax, [ebp + 8]
sar edx, 1
push edx
push 0
push eax
call fcn.10010170
push eax
lea ecx, [ebx + 0x20]
mov dword [ebp - 4], 0xd
call fcn.1000b570
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
mov dword [ebp - 4], 0xffffffff
cmp ecx, dword [0x1006f9cc]
je 0x1004f825
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004f825
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [edi]
mov edx, dword [eax - 8]
lea ecx, [eax + 2]
lea eax, [eax + edx*2]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], eax
cmp ecx, eax
jae 0x1004faa3
mov esi, dword [sym.imp.MSVCR100.dll_wcschr]
push 0x3d
push ecx
call esi
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1004faa3
push 0x26
push ebx
call esi
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004f9aa
lea esp, [esp]
mov esi, dword [ebp - 0x14]
add esi, 2
push 0x26
push esi
call dword [sym.imp.MSVCR100.dll_wcschr]
push 0x3d
push esi
mov edi, eax
call dword [sym.imp.MSVCR100.dll_wcschr]
add esp, 0x10
test edi, edi
je 0x1004f8a6
test eax, eax
je 0x1004f9aa
cmp eax, edi
jbe 0x1004f8a2
mov dword [ebp - 0x14], edi
jmp 0x1004f870
jae 0x1004f870
jmp 0x1004f8ae
test eax, eax
je 0x1004f9aa
mov esi, dword [ebp - 0x14]
mov edx, dword [0x1006f9d0]
sub esi, ebx
sar esi, 1
dec esi
mov dword [ebp - 0x10], edx
je 0x1004f8e9
push esi
lea ecx, [ebp - 0x10]
call fcn.10001e40
test eax, eax
je 0x1004f8e9
lea eax, [esi + esi]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x1004f8e9
mov edx, dword [ebp - 0x10]
push eax
lea ecx, [ebx + 2]
push ecx
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov edi, dword [ebp - 0x18]
mov esi, dword [0x1006f9d0]
sub ebx, edi
sar ebx, 1
mov dword [ebp - 4], 0xe
mov dword [ebp + 8], esi
je 0x1004f92c
push ebx
lea ecx, [ebp + 8]
call fcn.10001e40
test eax, eax
je 0x1004f929
lea eax, [ebx + ebx]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x1004f929
mov esi, dword [ebp + 8]
push eax
push edi
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x1004f92c
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp + 8]
push eax
add ecx, 0x28
mov byte [ebp - 4], 0xf
call fcn.1004f200
lea ecx, [esi - 0xc]
cmp ecx, dword [0x1006f9cc]
je 0x1004f965
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004f965
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [ebp - 0x10]
lea edx, [esi - 0xc]
mov dword [ebp - 4], 0xffffffff
cmp edx, dword [0x1006f9cc]
je 0x1004f991
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004f991
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x20]
jae 0x1004faa3
mov ecx, eax
jmp 0x1004f83e
mov eax, dword [0x1006f9d0]
lea esi, [ebx + 2]
mov dword [ebp + 8], eax
test esi, esi
je 0x1004fa02
mov ecx, esi
shr ecx, 0x10
test ecx, ecx
jne 0x1004f9d0
movzx eax, si
push eax
lea ecx, [ebp + 8]
call fcn.1000b600
jmp 0x1004fa02
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x1004fa02
push edi
lea ecx, [ebp + 8]
call fcn.10001e40
test eax, eax
je 0x1004fa02
lea eax, [edi + edi]
lea edx, [eax + 2]
cmp edx, eax
jb 0x1004fa02
push eax
mov eax, dword [ebp + 8]
push esi
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov edi, dword [ebp - 0x18]
mov esi, dword [0x1006f9d0]
sub ebx, edi
sar ebx, 1
mov dword [ebp - 4], 0x10
mov dword [ebp - 0x18], esi
je 0x1004fa45
push ebx
lea ecx, [ebp - 0x18]
call fcn.10001e40
test eax, eax
je 0x1004fa42
lea eax, [ebx + ebx]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x1004fa42
mov esi, dword [ebp - 0x18]
push eax
push edi
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x1004fa45
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x18]
push eax
add ecx, 0x28
mov byte [ebp - 4], 0x11
call fcn.1004f200
lea ecx, [esi - 0xc]
cmp ecx, dword [0x1006f9cc]
je 0x1004fa7e
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004fa7e
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [ebp + 8]
lea edx, [esi - 0xc]
cmp edx, dword [0x1006f9cc]
je 0x1004faa3
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004faa3
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 0x1c]
mov byte [eax + 4], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4