Function at 0x1005fb30
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10118d2f
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x1014d0cc]
xor eax, esp
mov dword [esp + 0xf4], eax
push ebx
push esi
mov eax, dword [0x1014d0cc]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0xc8]
mov dword [esp + 0x18], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor ebx, ebx
lea ecx, [esp + 0xe4]
mov dword [esp + 0x110], ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov byte [esp + 0x110], 1
mov dword [esp + 0xc], ebx
call fcn.1010d600
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x1012c014
mov dword [esp + 0x30], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea edx, [esp + 0xc8]
push edx
mov esi, edi
call fcn.1003adf0
add esp, 0x20
mov byte [esp + 0x110], 2
cmp dword [esp + 0xc0], ebx
je 0x1005fc64
cmp dword [esp + 0xc4], 0x10
mov eax, dword [esp + 0xb0]
jae 0x1005fc01
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x5c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
push ecx
mov bl, 3
lea ecx, [esp + 0x14]
mov byte [esp + 0x118], bl
call fcn.10039be0
add esp, 8
push eax
lea ecx, [esp + 0xcc]
mov byte [esp + 0x114], 4
call dword [0x1012717c]
lea ecx, [esp + 0x20]
mov byte [esp + 0x110], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x58]
mov byte [esp + 0x110], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [edx]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x1012c010
mov dword [esp + 0x34], eax
lea ebx, [esp + 0x34]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0xac]
push ecx
mov esi, edi
call fcn.1003adf0
add esp, 0x20
mov byte [esp + 0x110], 5
mov ebx, dword [esp + 0x14]
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp ebx, dword [edx]
je 0x1005fda4
jmp 0x1005fcc0
mov dword [esp + 0xc], 0
call fcn.1010d600
mov dword [esp + 0x10], eax
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call fcn.10039be0
add esp, 8
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x114], 6
call dword [0x1012717c]
lea ecx, [esp + 0x20]
mov byte [esp + 0x110], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov edx, dword [esp + 0xc]
neg edx
sbb edx, edx
test edx, fcn.1009bff0
jne 0x1005fd97
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x90]
push eax
add esi, 0xc
call fcn.10007690
push ebx
push str.tr
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ebx, eax
cmp ebx, dword [ecx]
je 0x1005fda4
add ebx, 4
push ebx
push 0x26
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char__unsigned_int_const]
sub eax, ebx
push eax
push ebx
lea edx, [esp + 0x28]
push edx
mov ecx, edi
call dword [sym.imp.MSVCP80.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__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x114], 7
call dword [0x1012717c]
lea ecx, [esp + 0x20]
mov byte [esp + 0x110], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp ebx, dword [eax]
jne 0x1005fcc0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x1012c018
xor ebx, ebx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x90]
push ecx
mov esi, edi
call fcn.1003adf0
add esp, 0x20
mov bl, 8
mov byte [esp + 0x110], bl
cmp dword [esp + 0x88], 0
jne 0x1005fe4f
mov ebx, 1
test byte [0x10154fc8], bl
jne 0x1005fe09
or dword [0x10154fc8], ebx
push 0x101261b0
mov dword [0x10154fcc], 0x10129a10
call fcn.1010dee9
add esp, 4
mov edx, dword [esp + 0x1c]
mov ecx, 0x10154fcc
mov eax, 0x16
mov dword [edx + 4], ecx
lea ecx, [esp + 0x74]
mov dword [edx], eax
mov byte [esp + 0x110], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x90]
mov byte [esp + 0x110], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x110], bl
jmp 0x1005ff85
push str.urn:btih:
push 9
push 0
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP80.dll_public:_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::compare_unsigned_int__unsigned_int__char_const__const]
test eax, eax
je 0x1005fe79
mov esi, dword [esp + 0x1c]
push 0x16
call fcn.10034120
jmp 0x1005ff56
xor eax, eax
cmp dword [esp + 0x88], 0x31
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
jne 0x1005feb9
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x1005feab
lea eax, [esp + 0x78]
lea ecx, [eax + 9]
lea eax, [esp + 0x58]
call fcn.1003b0d0
jmp 0x1005ff14
mov edx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [edx]
push eax
push 9
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP80.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__::substr_unsigned_int__unsigned_int_]
lea edx, [esp + 0x20]
push edx
mov ecx, eax
mov byte [esp + 0x114], 9
call fcn.1003aa80
add esp, 4
lea ecx, [esp + 0x58]
push ecx
mov ecx, eax
call fcn.1005f900
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x110], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [esp + 0xdc], 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0x2c], edx
mov edx, dword [esp + 0x60]
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 0x34], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], edx
je 0x1005ff56
lea ecx, [esp + 0xc8]
push ecx
lea ecx, [eax + 0x40]
call dword [0x1012717c]
lea ecx, [esp + 0x74]
mov byte [esp + 0x110], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x90]
mov byte [esp + 0x110], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [esp + 0x110], 1
lea ecx, [esp + 0xac]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xe4]
mov byte [esp + 0x110], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xc8]
mov dword [esp + 0x110], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.1010defb
mov esp, ebp
pop ebp
ret