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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10027bd9
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x10037018]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push esi
push edi
mov eax, dword [0x10037018]
xor eax, esp
push eax
lea eax, [esp + 0x198]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
push edi
push ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.MSVCR100.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
jne 0x1000b4fe
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000b4c0
sub eax, edx
sar eax, 1
lea esi, [eax + eax + 2]
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
push esi
mov edi, eax
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
add esi, 0xfffffffe
push esi
push ebx
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
jmp 0x1000b8b0
xor eax, eax
mov word [esp + 0xcc], ax
mov eax, ebx
mov dword [esp + 0xe0], 7
mov dword [esp + 0xdc], edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1000b520
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0xd0]
call fcn.10007710
mov dword [esp + 0x1a0], edi
xor ecx, ecx
mov dword [esp + 0x14], 1
mov dword [esp + 0x118], 7
mov dword [esp + 0x114], edi
mov word [esp + 0x104], cx
push str..___
lea ebx, [ecx + 1]
mov edi, esi
mov byte [esp + 0x1a4], 1
call fcn.10003d60
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
jne 0x1000b5ab
cmp dword [esp + 0xe0], 8
jb 0x1000b5a4
mov edx, dword [esp + 0xcc]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x1000b8b2
push 0x10029680
lea edi, [esp + 0xd0]
call fcn.10003d60
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000b5fb
push 0x1002afc0
mov ebx, 1
call fcn.10003d60
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000b5fb
cmp dword [esp + 0xe0], 8
jb 0x1000b5a4
mov eax, dword [esp + 0xcc]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x1000b8b2
lea eax, [ebx + 1]
push eax
xor ecx, ecx
lea esi, [esp + 0x124]
lea edx, [esp + 0xd0]
mov dword [esp + 0x20], eax
call fcn.10003a20
mov edi, dword [esp + 0x20]
push 0xffffffffffffffff
mov ecx, edi
lea esi, [esp + 0x140]
lea edx, [esp + 0xd0]
mov byte [esp + 0x1a4], 2
call fcn.10003a20
sub edi, ebx
dec edi
mov byte [esp + 0x1a0], 3
mov ecx, dword [esp + 0x1c]
push edi
lea esi, [esp + 0x15c]
lea edx, [esp + 0xd0]
call fcn.10003a20
mov edi, edi
mov esi, 7
xor ebx, ebx
xor ecx, ecx
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], ebx
mov word [esp + 0xe8], cx
mov byte [esp + 0x1a0], 5
lea ecx, [esp + 0x84]
mov dword [esp + 0x24], 0x1002b1f8
mov dword [esp + 0x34], 0x1002b838
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push ebx
lea edx, [esp + 0x40]
mov byte [esp + 0x1a4], 6
or dword [esp + 0x1c], 1
push edx
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov dword [esp + 0x1a0], esi
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x24], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP100.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
mov dword [esp + 0x3c], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov edx, dword [esp + 0x14]
push 0x1002afc4
push edx
lea eax, [esp + 0x3c]
push 0x1002afc8
push eax
mov byte [esp + 0x1b0], 9
call fcn.1000ca50
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
push eax
call fcn.1000ca50
add esp, 8
lea ecx, [esp + 0x174]
lea eax, [esp + 0x24]
call fcn.1000c060
mov edi, eax
push ebx
lea ecx, [esp + 0x124]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0xf0]
mov byte [esp + 0x1a8], 0xa
call fcn.10003ea0
push ebx
lea edx, [esp + 0x15c]
mov esi, eax
push edx
or eax, 0xffffffff
call fcn.10003ea0
push ebx
mov esi, eax
push edi
or eax, 0xffffffff
call fcn.10003ea0
mov esi, eax
push ebx
lea eax, [esp + 0x140]
push eax
or eax, 0xffffffff
call fcn.10003ea0
mov esi, 8
cmp dword [esp + 0x188], esi
jb 0x1000b7a9
mov ecx, dword [esp + 0x174]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esp + 0xe8]
cmp dword [esp + 0xfc], esi
jae 0x1000b7c0
lea eax, [esp + 0xe8]
push ebx
push eax
call dword [sym.imp.MSVCR100.dll__waccess]
add esp, 8
cmp eax, 0xffffffff
je 0x1000b8d6
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 4]
inc dword [esp + 0x14]
lea edx, [esp + 0x84]
mov dword [esp + 0x1c], edx
mov dword [esp + ecx + 0x24], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1a0], 0xb
call fcn.1000c080
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1a0], 5
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [esp + 0x84]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
mov byte [esp + 0x1a0], 4
cmp dword [esp + 0xfc], esi
jb 0x1000b844
mov edx, dword [esp + 0xe8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [esp + 0x14], 0x3e8
jl 0x1000b660
mov eax, dword [esp + 0xcc]
cmp dword [esp + 0xe0], esi
jae 0x1000b869
lea eax, [esp + 0xcc]
push eax
call sym.libBasic.dll_public:_static_wchar_t____cdecl_BASUtilityString::Wcsdup_wchar_t_const__
add esp, 4
mov edi, eax
lea esi, [esp + 0x158]
call fcn.100039f0
lea esi, [esp + 0x13c]
call fcn.100039f0
lea esi, [esp + 0x120]
call fcn.100039f0
lea esi, [esp + 0x104]
call fcn.100039f0
lea esi, [esp + 0xcc]
call fcn.100039f0
mov eax, edi
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.100256d0
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xe8]
cmp dword [esp + 0xfc], esi
jae 0x1000b8ed
lea eax, [esp + 0xe8]
push eax
call sym.libBasic.dll_public:_static_wchar_t____cdecl_BASUtilityString::Wcsdup_wchar_t_const__
add esp, 4
lea ecx, [esp + 0x24]
mov edi, eax
mov byte [esp + 0x1a0], 5
call fcn.1000b920
lea esi, [esp + 0xe8]
call fcn.100039f0
jmp 0x1000b874