Function at 0x46fa60
Capabilities:
Parse url

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51fde3
push eax
mov dword fs:[0], esp
sub esp, 0x99c
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
mov eax, dword [ebx + 8]
push esi
cmp eax, ebp
push edi
jne 0x46fa8f
call fcn.0046f1e0
mov esi, dword [esp + 0x9bc]
cmp esi, ebp
je 0x46fe0f
cmp byte [esi], 0
je 0x46fe0f
mov ecx, 0x208
xor eax, eax
lea edi, [esp + 0x189]
mov byte [esp + 0x188], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
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 + 0x9c0]
cmp eax, ebp
mov dword [esp + 0x5c], 0x104
je 0x46fb47
push SysReAllocString
push ebp
lea ecx, [esp + 0x190]
push 0x824
push ecx
call fcn.00470b20
cmp eax, ebp
jl 0x46fb92
push SysReAllocString
push esi
push ebp
lea edx, [esp + 0x194]
push 0x824
push edx
call fcn.00470b90
jmp 0x46fb92
lea eax, [esp + 0x48]
push eax
push 0x10000000
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x46fe0f
lea ecx, [esp + 0x84]
push ecx
mov ecx, ebx
call fcn.0046f900
cmp eax, ebp
je 0x46fb92
push eax
lea edx, [esp + 0x18c]
push 0x103
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0xc
mov al, byte [esp + 0x188]
test al, al
je 0x46fe0f
mov al, byte [esp + 0x13]
push ebp
push ebp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], al
call fcn.00471010
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
lea ecx, [esp + 0x188]
lea edx, [esp + 0x14]
push ecx
push edx
mov ecx, ebx
mov dword [esp + 0x9bc], ebp
call fcn.0046f710
mov eax, dword [esp + 0x18]
mov ebp, dword [eax]
cmp ebp, eax
je 0x46fcaf
mov al, byte [ebp + 8]
lea esi, [ebp + 8]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], al
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 ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
lea ecx, [esp + 0x24]
push edx
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 + 0x9b4], 1
test esi, esi
jne 0x46fc27
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 al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], al
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 ecx, [esp + 0x34]
lea edx, [esp + 0x20]
push ecx
push edx
lea ecx, [ebx + 0xc]
mov byte [esp + 0x9bc], 2
call fcn.00470e40
mov esi, dword [esp + 0x20]
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x9b8], 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 [ebx + 0x10]
mov byte [esp + 0x9b4], 0
cmp esi, eax
push 1
lea ecx, [esp + 0x28]
jne 0x46fcd1
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 ebp, dword [ebp]
mov eax, dword [esp + 0x18]
cmp ebp, eax
jne 0x46fbe5
mov ecx, dword [eax]
push eax
lea eax, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x9c0], 0xffffffff
call fcn.00470f80
jmp 0x46fe02
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 [esi + 0x1c]
lea eax, [esp + 0x188]
push edx
push 0
push eax
call dword [sym.imp.SHLWAPI.dll_StrRStrIA]
test eax, eax
je 0x46fdd6
mov ecx, dword [esi + 0x1c]
mov edx, dword [ecx + 0x100]
cmp byte [edx + eax], 0
jne 0x46fdd6
lea edx, [esp + 0x188]
cmp edx, eax
je 0x46fd1b
cmp byte [eax - 1], 0x2e
jne 0x46fdd6
mov eax, dword [ecx + 0x108]
test eax, eax
je 0x46fd63
mov edx, dword [ecx + 0x10c]
sub edx, eax
sar edx, 2
je 0x46fd63
mov edi, eax
mov eax, dword [ecx + 0x10c]
cmp edi, eax
je 0x46fd63
mov ebx, dword [sym.imp.SHLWAPI.dll_PathMatchSpecA]
mov eax, dword [edi]
push eax
lea eax, [esp + 0x18c]
push eax
call ebx
test eax, eax
jne 0x46fda3
mov ecx, dword [esi + 0x1c]
add edi, 4
cmp edi, dword [ecx + 0x10c]
jne 0x46fd44
mov edi, dword [esp + 0x18]
mov dword [esp + 0x9b4], 0xffffffff
mov esi, dword [edi]
cmp esi, edi
je 0x46fd8f
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.00471a40
cmp esi, edi
jne 0x46fd78
mov edx, dword [esp + 0x18]
push edx
call fcn.0051d79a
add esp, 4
mov eax, 1
jmp 0x46fe11
mov edi, dword [esp + 0x18]
mov dword [esp + 0x9b4], 0xffffffff
mov esi, dword [edi]
cmp esi, edi
je 0x46fdcf
mov eax, esi
mov esi, dword [esi]
lea edx, [esp + 0x20]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00471a40
cmp esi, edi
jne 0x46fdb8
mov eax, dword [esp + 0x18]
push eax
jmp 0x46fe07
mov edi, dword [esp + 0x18]
mov dword [esp + 0x9b4], 0xffffffff
mov esi, dword [edi]
cmp esi, edi
je 0x46fe02
mov eax, esi
mov esi, dword [esi]
push eax
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
call fcn.00471a40
cmp esi, edi
jne 0x46fdeb
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0051d79a
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x9ac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x9a8
ret 8