Function at 0x10011a40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x16c
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x38], ebx
cmp eax, ebp
mov dword [esp + 0x34], ebp
jl 0x10011a72
push eax
mov eax, dword [0x10056a10]
lea ecx, [eax + 0x64]
call fcn.10010490
pop ebp
pop ebx
add esp, 0x16c
ret
push esi
push edi
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0xfd]
mov byte [esp + 0xfc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x10050e7c
or ecx, 0xffffffff
xor eax, eax
lea esi, [ebx + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ebp
push ecx
push ebp
push 0x10050e7c
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
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 edi, eax
cmp dword [ecx], edi
je 0x10011ee0
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x58]
mov byte [esp + 0x58], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [esp + 0x13]
lea ecx, [esp + 0x2c]
push eax
push edi
push ebp
push esi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int__class_std::allocator_char__const__]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov eax, dword [esp + 0x4c]
test eax, eax
jbe 0x10011b32
push ebp
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP60.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
mov dl, byte [eax]
push edx
call fcn.10007230
add esp, 4
lea ecx, [esp + 0x44]
mov bl, al
push ebp
call dword [sym.imp.MSVCP60.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
mov byte [eax], bl
mov eax, dword [esp + 0x4c]
inc ebp
cmp ebp, eax
jb 0x10011b00
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x44]
lea ecx, [esp + 0x18]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
push 1
lea ecx, [esp + 0x48]
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 1
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x18]
push str.https
push ecx
mov dword [esp + 0x1c], 0x50
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
je 0x10011b80
mov dword [esp + 0x14], 0x1bb
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea edx, [esp + 0x13]
push edx
add edi, 3
mov ecx, dword [eax]
push ecx
push edi
push esi
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int__class_std::allocator_char__const__]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
xor ebp, ebp
lea ecx, [esp + 0x2c]
mov eax, dword [edx]
push eax
push ebp
push ecx
lea ecx, [esp + 0x24]
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_]
push 1
lea ecx, [esp + 0x30]
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, 0x10050e88
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push 0x10050e88
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov esi, eax
mov edi, dword [edx]
cmp edi, esi
je 0x10011c55
cmp dword [esp + 0x20], esi
jae 0x10011bfd
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xran_void_]
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Split_void_]
mov eax, dword [esp + 0x20]
mov ecx, eax
sub ecx, esi
cmp ecx, edi
jae 0x10011c15
mov edi, ecx
cmp edi, ebp
jbe 0x10011c55
mov ecx, dword [esp + 0x1c]
sub eax, edi
sub eax, esi
push eax
lea eax, [ecx + edi]
add eax, esi
add ecx, esi
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_memmove]
mov esi, dword [esp + 0x2c]
add esp, 0xc
sub esi, edi
lea ecx, [esp + 0x18]
push ebp
push esi
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 0x10011c55
push esi
lea ecx, [esp + 0x1c]
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_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x18]
mov edx, dword [ecx]
lea ecx, [esp + 0x54]
push edx
push ebp
push eax
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 edi, 0x10050e8c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push 0x10050e8c
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
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 esi, eax
cmp dword [ecx], esi
je 0x10011d76
lea edx, [esp + 0x13]
lea eax, [esp + 0x18]
push edx
push esi
push ebp
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int__class_std::allocator_char__const__]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x2c]
mov edx, dword [ecx]
lea ecx, [esp + 0x54]
push edx
push ebp
push eax
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_]
push 1
lea ecx, [esp + 0x30]
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 + 0x13]
push ecx
inc esi
mov eax, dword [edx]
lea ecx, [esp + 0x1c]
push eax
push esi
push ecx
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int__class_std::allocator_char__const__]
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 + 0x2c]
mov eax, dword [edx]
push eax
push ebp
push ecx
lea ecx, [esp + 0x24]
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_]
push 1
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [esp + 0x14]
test edx, edx
je 0x10011d76
push 1
lea eax, [esp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int_]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x78]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::operator___int__]
mov edx, dword [esp + 0x74]
mov eax, dword [edx + 4]
test byte [esp + eax + 0x78], 6
je 0x10011d5c
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0xc8]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_istringstream_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xc8]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov eax, dword [esp + 0x58]
cmp eax, ebp
jne 0x10011d83
mov eax, 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 ecx, [esp + 0x64]
push eax
push ecx
call fcn.10037d20
mov eax, dword [esp + 0x70]
add esp, 8
cmp eax, ebp
jne 0x10011d9e
mov eax, 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]
push eax
push 0x10050e90
lea edx, [esp + 0x104]
push 0x80
push edx
call fcn.1002a490
lea edi, [ebx + 0x30]
add esp, 0x10
cmp edi, ebp
je 0x10011dcb
mov eax, dword [edi]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebx + 4]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x28], eax
je 0x10011e66
mov esi, dword [eax + 0x10]
mov eax, dword [esi + 0x2c]
cmp eax, ebp
je 0x10011deb
cmp eax, 1
jne 0x10011e34
lea ecx, [esp + 0xfc]
lea edx, [esi + 0xb0]
push ecx
lea eax, [esi + 0x30]
push edx
push eax
call fcn.10038310
add esp, 0xc
test al, al
je 0x10011e34
mov eax, dword [esi + 0x1f70]
cmp eax, ebp
je 0x10011e4a
mov ecx, dword [esi + 0x1f74]
sub ecx, eax
test ecx, 0xfffffff8
je 0x10011e4a
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call fcn.10019330
test al, al
jne 0x10011e4a
lea ecx, [esp + 0x28]
call fcn.10015e60
mov ecx, dword [ebx + 4]
mov eax, dword [esp + 0x28]
cmp eax, ecx
je 0x10011e66
jmp 0x10011ddc
mov eax, dword [esi + 0x24]
mov ecx, dword [0x10056984]
push eax
push str.get_portal_svc_svcid:_d
push ecx
mov dword [esp + 0x48], esi
call fcn.10028e20
add esp, 0xc
cmp edi, ebp
je 0x10011e73
mov edx, dword [edi]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 1
lea ecx, [esp + 0x68]
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 [esp + 0x1c]
cmp ecx, ebp
je 0x10011ea3
mov al, byte [ecx - 1]
test al, al
je 0x10011e99
cmp al, 0xff
je 0x10011e99
dec al
mov byte [ecx - 1], al
jmp 0x10011ea3
dec ecx
push ecx
call fcn.10047cb0
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x1c], ebp
cmp ecx, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
je 0x10011ee0
mov al, byte [ecx - 1]
test al, al
je 0x10011ed6
cmp al, 0xff
je 0x10011ed6
dec al
pop edi
pop esi
mov byte [ecx - 1], al
mov eax, dword [esp + 0x34]
pop ebp
pop ebx
add esp, 0x16c
ret
dec ecx
push ecx
call fcn.10047cb0
add esp, 4
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x16c
ret