Function at 0x46ad10
Capabilities:
Parse url

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x50eeb3
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 0x46ad60
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46ad60
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0x46ad60
push eax
call edi
mov dword [ebp + 0x1c], esi
mov eax, dword [ebp + 0x1c]
cmp eax, esi
je 0x46ad6d
push eax
call edi
mov dword [ebp + 0x1c], esi
cmp dword [ebp + 4], esi
je 0x46b0b5
mov ebx, dword [esp + 0x8b8]
cmp ebx, esi
je 0x46b0b5
cmp byte [ebx], 0
je 0x46b0b5
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 0x46ae13
push SysReAllocString
push esi
lea ecx, [esp + 0x8c]
push 0x824
push ecx
call fcn.0046bce0
cmp eax, esi
jl 0x46ae34
push SysReAllocString
push ebx
push esi
lea edx, [esp + 0x90]
push 0x824
push edx
call fcn.0046bd50
jmp 0x46ae34
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 0x46b0b5
mov al, byte [esp + 0x84]
test al, al
je 0x46b0b5
mov cl, byte [esp + 0x13]
push esi
mov byte [esp + 0x18], cl
push esi
lea ecx, [esp + 0x1c]
call fcn.0046c1d0
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.0046ab20
mov eax, dword [esp + 0x18]
mov ebx, dword [eax]
cmp ebx, eax
je 0x46af50
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 0x46aec9
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.0046c000
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 0x46af77
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 0x46ae87
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.0046c140
mov edx, dword [esp + 0x18]
push edx
jmp 0x46b0ad
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 0x46b07c
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 0x100]
cmp byte [edx + eax], 0
jne 0x46b07c
lea edx, [esp + 0x84]
cmp edx, eax
je 0x46afc1
cmp byte [eax - 1], 0x2e
jne 0x46b07c
mov eax, dword [ecx + 0x108]
test eax, eax
je 0x46b009
mov edx, dword [ecx + 0x10c]
sub edx, eax
sar edx, 2
je 0x46b009
mov edi, eax
mov eax, dword [ecx + 0x10c]
cmp edi, eax
je 0x46b009
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 0x46b049
mov ecx, dword [esi + 0x1c]
add edi, 4
cmp edi, dword [ecx + 0x10c]
jne 0x46afea
mov edi, dword [esp + 0x18]
mov dword [esp + 0x8b0], 0xffffffff
mov esi, dword [edi]
cmp esi, edi
je 0x46b035
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.0046cc00
cmp esi, edi
jne 0x46b01e
mov edx, dword [esp + 0x18]
push edx
call fcn.0050c98e
add esp, 4
mov eax, 1
jmp 0x46b0b7
mov edi, dword [esp + 0x18]
mov dword [esp + 0x8b0], 0xffffffff
mov esi, dword [edi]
cmp esi, edi
je 0x46b075
mov eax, esi
mov esi, dword [esi]
lea edx, [esp + 0x20]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.0046cc00
cmp esi, edi
jne 0x46b05e
mov eax, dword [esp + 0x18]
push eax
jmp 0x46b0ad
mov edi, dword [esp + 0x18]
mov dword [esp + 0x8b0], 0xffffffff
mov esi, dword [edi]
cmp esi, edi
je 0x46b0a8
mov eax, esi
mov esi, dword [esi]
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
call fcn.0046cc00
cmp esi, edi
jne 0x46b091
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0050c98e
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