Function at 0x46c1b0
Capabilities:
Parse url

Disassembly:
mov eax, 0x125c
call fcn.004a7630
push esi
mov esi, dword [esp + 0x1264]
push edi
push esi
push esi
call fcn.0046bf50
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 0xec]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x16c]
mov dword [esp + 0x14], eax
mov eax, 0x80
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov eax, 0x800
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
add esp, 8
lea edx, [esp + 0x264]
lea ecx, [esp + 0xa64]
test esi, esi
mov dword [esp + 8], 0x3c
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x1c], 0x100
mov word [esp + 0x20], 0
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
jne 0x46c25f
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]
lea edx, [esp + 8]
push edx
push 0x10000000
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x46c27e
pop edi
pop esi
add esp, 0x125c
ret
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov esi, edi
repne scasb al, byte es:[edi]
not ecx
push ebx
dec ecx
push ebp
mov ebp, dword [esp + 0x1274]
mov ebx, ecx
push 1
push ebx
mov ecx, ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x46c2c5
mov edi, dword [ebp + 4]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], ebx
mov byte [ecx + ebx], 0
mov edi, dword [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
mov esi, edi
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x1278]
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::max_size_void_const]
cmp eax, ebp
jae 0x46c2f0
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x46c316
mov al, byte [ecx - 1]
test al, al
je 0x46c316
cmp al, 0xff
je 0x46c316
test ebp, ebp
jne 0x46c33c
dec al
push ebp
mov byte [ecx - 1], al
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x46c362
test ebp, ebp
jne 0x46c326
push 1
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x46c362
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x46c332
cmp eax, ebp
jae 0x46c345
push 1
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push ebp
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov edi, dword [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
mov esi, edi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
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]
mov ecx, dword [ebx + 8]
sub edx, ecx
cmp edx, edi
ja 0x46c38b
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test edi, edi
jbe 0x46c415
mov edx, dword [ebx + 8]
mov ebp, edi
mov ecx, ebx
add ebp, edx
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::max_size_void_const]
cmp eax, ebp
jae 0x46c3ac
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x46c3d2
mov al, byte [ecx - 1]
test al, al
je 0x46c3d2
cmp al, 0xff
je 0x46c3d2
test ebp, ebp
jne 0x46c3ea
dec al
push ebp
mov byte [ecx - 1], al
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x46c415
test ebp, ebp
jne 0x46c3e5
test ecx, ecx
je 0x46c415
push ebp
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
jmp 0x46c415
cmp dword [ebx + 0xc], ebp
jae 0x46c3f3
push ebp
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Copy_unsigned_int_]
mov eax, dword [ebx + 8]
mov ecx, edi
mov edi, dword [ebx + 4]
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [ecx + ebp], 0
push ebx
push ebx
call fcn.0046c0a0
mov edx, dword [esp + 0x1284]
mov ax, word [esp + 0x30]
add esp, 8
mov word [edx], ax
mov eax, 1
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x125c
ret