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

Disassembly:
push 0xffffffffffffffff
push 0x10144d9e
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2d0]
mov ebx, dword [esp + 0x30c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
xor esi, esi
cmp ebx, esi
mov dword [esp + 0x2c8], 1
je 0x10054f0e
mov eax, dword [ebx]
mov edx, dword [eax + 0x78]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
mov dword [esp + 0x1c], esi
call edx
mov ecx, dword [esp + 0x18]
cmp ecx, esi
je 0x10054f0e
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
test al, 0x10
je 0x10054ef2
push 0x206
lea eax, [esp + 0xba]
push esi
push eax
mov word [esp + 0xc0], si
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
mov edx, dword [ecx]
mov edx, dword [edx + 0x34]
push eax
push esi
xor ebp, ebp
call edx
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x10054c77
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov ebp, eax
mov eax, dword [esp + 0x20]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push esi
push ebp
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov ecx, dword [esp + 0x1c]
add esp, 4
mov esi, eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x34]
lea edx, [esp + 0x1c]
push edx
push esi
call eax
xor ebx, ebx
cmp dword [esi + 0x10], ebx
jbe 0x10054c6a
lea edi, [esi + 0x1c]
cmp dword [edi - 8], 2
jne 0x10054c5b
mov ecx, dword [edi]
mov edx, dword [edi - 4]
push ecx
add edx, esi
push edx
push ebp
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add ebx, 1
add edi, 0x10
cmp ebx, dword [esi + 0x10]
jb 0x10054c43
mov edi, dword [esp + 0x20]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov ebx, dword [esp + 0x28]
add esp, 4
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x1c]
push edx
push 0
call eax
cmp dword [esp + 0x1c], 0
je 0x10054ca8
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0xb8]
push eax
call edx
test ebp, ebp
je 0x10054f0e
cmp dword [esp + 0x1c], 0
je 0x10054f0e
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x80]
push ecx
mov byte [esp + 0x2d0], 2
call fcn.10004130
add esp, 8
cmp dword [esp + 0x2e8], 0
je 0x10054d01
push 0x101520e4
lea ecx, [esp + 0x2d8]
call dword [0x1014c4e8]
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x2d8]
call dword [0x1014c4e4]
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [esp + 0x98]
push ebp
push eax
mov byte [esp + 0x2d0], 3
call fcn.10004130
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
add esp, 8
lea eax, [esp + 0x6c]
push eax
call edx
movzx esi, word [eax]
cmp esi, 4
je 0x10054d6e
push 0x101520e4
mov ecx, edi
call dword [0x1014c4e8]
lea eax, [esp + 0x98]
push eax
mov ecx, edi
call dword [0x1014c4e4]
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov ebp, dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 4
lea ecx, [esp + 0x2f0]
push ecx
lea edx, [esp + 0x2d8]
push edx
call ebp
add esp, 8
test al, al
jne 0x10054f67
mov eax, dword [esp + 0x18]
push eax
sub esp, 0x1c
lea edx, [esp + 0x310]
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
sub esp, 0x1c
lea eax, [esp + 0x310]
mov ecx, esp
mov dword [esp + 0x68], esp
push eax
mov byte [esp + 0x308], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, dword [esp + 0x64]
push edi
mov byte [esp + 0x308], 3
call fcn.10054b10
test al, al
jne 0x10054f67
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x2d8]
push edx
call ebp
add esp, 8
test al, al
je 0x10054e19
push 0x10152144
lea ecx, [esp + 0x2d8]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
jmp 0x10054e67
mov eax, dword [esp + 0x2e8]
sub eax, dword [esp + 0x90]
lea ecx, [esp + 0x50]
sub eax, 1
push eax
push 0
push ecx
lea ecx, [esp + 0x2e0]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x2d8]
mov byte [esp + 0x2cc], 5
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x50]
mov byte [esp + 0x2c8], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, 4
je 0x10054ecb
lea edx, [esp + 0x98]
push edx
push edi
call ebp
add esp, 8
test al, al
mov ecx, edi
je 0x10054e8d
push 0x10152144
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
jmp 0x10054ecb
mov eax, dword [edi + 0x14]
sub eax, dword [esp + 0xac]
sub eax, 1
push eax
push 0
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
mov ecx, edi
mov byte [esp + 0x2cc], 6
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c8], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x98]
mov byte [esp + 0x2c8], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x2c8], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov edx, dword [ebx]
mov edx, dword [edx + 0x7c]
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call edx
mov ecx, dword [esp + 0x18]
xor esi, esi
cmp ecx, esi
jne 0x10054b98
lea ecx, [esp + 0x2d4]
mov byte [esp + 0x2c8], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x2f0]
mov dword [esp + 0x2c8], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor al, al
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.10130e50
add esp, 0x2b8
ret 0x40
lea ecx, [esp + 0x98]
mov byte [esp + 0x2c8], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x2c8], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x2d4]
mov byte [esp + 0x2c8], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x2f0]
mov dword [esp + 0x2c8], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, 1
jmp 0x10054f3d