Function at 0x46d3e0
Capabilities:
Parse url

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x515153
push eax
mov dword fs:[0], esp
sub esp, 0x898
push ebx
push ebp
mov ebp, ecx
push esi
xor esi, esi
push edi
mov eax, dword [ebp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, esi
je 0x46d430
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46d430
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0x46d430
push eax
call edi
mov dword [ebp + 0x1c], esi
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0x46d43d
push eax
call edi
mov dword [ebp + 0x1c], esi
cmp dword [ebp + 4], esi
je 0x46d785
mov ebx, dword [esp + 0x8b8]
cmp ebx, esi
je 0x46d785
cmp byte [ebx], 0
je 0x46d785
mov ecx, 0x208
xor eax, eax
lea edi, [esp + 0x85]
mov byte [esp + 0x84], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x84]
mov dword [esp + 0x48], 0x3c
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x8bc]
cmp eax, esi
mov dword [esp + 0x5c], 0x824
je 0x46d4e3
push SysReAllocString
push esi
lea ecx, [esp + 0x8c]
push 0x824
push ecx
call fcn.0046e4a0
cmp eax, esi
jl 0x46d504
push SysReAllocString
push ebx
push esi
lea edx, [esp + 0x90]
push 0x824
push edx
call fcn.0046e510
jmp 0x46d504
lea eax, [esp + 0x48]
push eax
push 0x10000000
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x46d785
mov al, byte [esp + 0x84]
test al, al
je 0x46d785
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x18], cl
push esi
lea ecx, [esp + 0x1c]
call fcn.0046e990
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
lea edx, [esp + 0x84]
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x8b8], esi
call fcn.0046d1f0
mov eax, dword [esp + 0x18]
mov ebx, dword [eax]
cmp ebx, eax
je 0x46d620
mov cl, byte [ebx + 8]
lea esi, [ebx + 8]
mov byte [esp + 0x24], cl
push 0
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea ecx, [esp + 0x24]
mov eax, dword [edx]
push eax
push 0
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov esi, dword [esp + 0x28]
mov byte [esp + 0x8b0], 1
test esi, esi
jne 0x46d599
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x38], cl
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea edx, [esp + 0x34]
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [ebp + 8]
mov byte [esp + 0x8b8], 2
call fcn.0046e7c0
mov esi, dword [esp + 0x20]
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x8b4], 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x8b0], 0
cmp esi, eax
push 1
lea ecx, [esp + 0x28]
jne 0x46d647
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ebx, dword [ebx]
mov eax, dword [esp + 0x18]
cmp ebx, eax
jne 0x46d557
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x8bc], 0xffffffff
call fcn.0046e900
mov edx, dword [esp + 0x18]
push edx
jmp 0x46d77d
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x84]
push eax
push 0
push ecx
call dword [sym.imp.SHLWAPI.dll_StrRStrIA]
test eax, eax
je 0x46d74c
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 0x100]
cmp byte [edx + eax], 0
jne 0x46d74c
lea edx, [esp + 0x84]
cmp edx, eax
je 0x46d691
cmp byte [eax - 1], 0x2e
jne 0x46d74c
mov eax, dword [ecx + 0x108]
test eax, eax
je 0x46d6d9
mov edx, dword [ecx + 0x10c]
sub edx, eax
sar edx, 2
je 0x46d6d9
mov edi, eax
mov eax, dword [ecx + 0x10c]
cmp edi, eax
je 0x46d6d9
mov ebx, dword [sym.imp.SHLWAPI.dll_PathMatchSpecA]
mov eax, dword [edi]
push eax
mov eax, dword [esp + 0x8bc]
push eax
call ebx
test eax, eax
jne 0x46d719
mov ecx, dword [esi + 0x1c]
add edi, 4
cmp edi, dword [ecx + 0x10c]
jne 0x46d6ba
mov edi, dword [esp + 0x18]
mov dword [esp + 0x8b0], 0xffffffff
mov esi, dword [edi]
cmp esi, edi
je 0x46d705
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0046f3c0
cmp esi, edi
jne 0x46d6ee
mov edx, dword [esp + 0x18]
push edx
call fcn.00512b1a
add esp, 4
mov eax, 1
jmp 0x46d787
mov edi, dword [esp + 0x18]
mov dword [esp + 0x8b0], 0xffffffff
mov esi, dword [edi]
cmp esi, edi
je 0x46d745
mov eax, esi
mov esi, dword [esi]
lea edx, [esp + 0x20]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.0046f3c0
cmp esi, edi
jne 0x46d72e
mov eax, dword [esp + 0x18]
push eax
jmp 0x46d77d
mov edi, dword [esp + 0x18]
mov dword [esp + 0x8b0], 0xffffffff
mov esi, dword [edi]
cmp esi, edi
je 0x46d778
mov eax, esi
mov esi, dword [esi]
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
call fcn.0046f3c0
cmp esi, edi
jne 0x46d761
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00512b1a
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x8a8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8a4
ret 8