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

Disassembly:
push 0xffffffffffffffff
push 0x4fb226
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8dc
mov eax, dword [esp + 0x8fc]
push ebx
mov ebx, ecx
push ebp
mov cl, byte [esp + 0xb]
push esi
push edi
mov byte [esp + 0x68], cl
push 0
lea ecx, [esp + 0x6c]
mov byte [eax], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov esi, dword [esp + 0x8fc]
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
call ebp
add esp, 4
lea ecx, [esp + 0x68]
push eax
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov edi, dword [esp + 0x900]
mov dword [esp + 0x8f4], 0
push edi
call ebp
add esp, 4
lea ecx, [esp + 0x68]
push eax
push edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
mov ecx, dword [esp + 0x908]
lea edx, [esp + 0x68]
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.00424160
mov al, byte [esp + 0x13]
xor edi, edi
push edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2c], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push esi
call ebp
add esp, 4
lea ecx, [esp + 0x28]
push eax
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
lea ecx, [esp + 0x28]
mov byte [esp + 0x8f4], 1
push ecx
mov ecx, ebx
call fcn.004ca540
mov dl, byte [esp + 0x13]
push edi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x8f4], 2
cmp eax, edi
jne 0x4c96ea
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x3c]
push edx
push ecx
push eax
mov ecx, ebx
call fcn.004cab00
mov dl, byte [esp + 0x13]
mov dword [esp + 0x18], edi
mov byte [esp + 0x14], dl
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x904]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, ebx
mov byte [esp + 0x8fc], 3
call fcn.004cb0b0
lea edx, [esp + 0x13]
lea eax, [esp + 0x12]
push edx
push edi
push eax
lea ecx, [esp + 0xbc]
call fcn.004cc050
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
mov byte [esp + 0x8f4], 4
mov edi, eax
je 0x4c9a90
mov eax, dword [edi + 4]
test eax, eax
jne 0x4c976e
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
lea edx, [esp + 0x2c]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
call fcn.004cb9c0
add esp, 0x14
test al, al
je 0x4c9a83
mov al, byte [esp + 0x12]
push 0
lea ecx, [esp + 0x94]
mov byte [esp + 0x94], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov cl, byte [esp + 0x12]
push 0
mov byte [esp + 0x5c], cl
lea ecx, [esp + 0x5c]
mov byte [esp + 0x8f8], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov dl, byte [esp + 0x12]
push 0
lea ecx, [esp + 0x7c]
mov byte [esp + 0x8f8], 6
mov byte [esp + 0x7c], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [edi + 4]
mov byte [esp + 0x8f4], 7
test eax, eax
jne 0x4c97f9
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x6e4]
lea edx, [esp + 0x2d4]
push ecx
push edx
lea ecx, [esp + 0x4e4]
lea edx, [esp + 0xd4]
push ecx
push edx
push eax
call dword [sym.imp.MSVCRT.dll__wsplitpath]
lea eax, [esp + 0xe0]
push eax
call ebp
add esp, 0x18
lea ecx, [esp + 0xcc]
push eax
push ecx
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
lea edx, [esp + 0x4dc]
push edx
call ebp
add esp, 4
lea ecx, [esp + 0x90]
push eax
lea eax, [esp + 0x4e0]
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
lea ecx, [esp + 0x2d4]
push ecx
call ebp
add esp, 4
lea edx, [esp + 0x2d4]
lea ecx, [esp + 0x58]
push eax
push edx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
lea eax, [esp + 0x6e4]
push eax
call ebp
add esp, 4
lea ecx, [esp + 0x6e4]
push eax
push ecx
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov eax, dword [esp + 0x60]
test eax, eax
jne 0x4c98f8
push 1
lea ecx, [esp + 0x7c]
add edi, 0x10
mov byte [esp + 0x8f8], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x8f8], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x94]
mov byte [esp + 0x8f8], 4
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
jmp 0x4c9a86
mov edx, dword [esp + 0x900]
lea eax, [esp + 0x78]
push edx
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
call fcn.004cb9c0
add esp, 0x14
test al, al
jne 0x4c9a44
mov cl, byte [esp + 0x12]
push 0
mov byte [esp + 0xa4], cl
lea ecx, [esp + 0xa4]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x8f4], 8
test eax, eax
jne 0x4c9953
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x54]
push edx
lea edx, [esp + 0xa4]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.004cab00
mov al, byte [esp + 0x38]
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x34], esp
push 0
mov ecx, esi
mov byte [esi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea eax, [esp + 0x48]
mov edx, dword [ecx]
mov ecx, esi
push edx
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
sub esp, 0x10
lea edx, [esp + 0xc0]
mov ecx, esp
mov dword [esp + 0xe0], esp
push edx
mov byte [esp + 0x918], 9
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov byte [esp + 0x914], 8
call fcn.004cbb30
add esp, 0x20
test al, al
jne 0x4c9a2d
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jne 0x4c9a2d
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
je 0x4c9a2d
mov edx, dword [esp + 0x90c]
mov byte [edx], 1
jle 0x4c9a2d
mov esi, dword [esp + 0x18]
mov ecx, edi
sub ecx, esi
mov dword [esp + 0x88], eax
sar ecx, 4
lea edx, [esp + 0x88]
lea eax, [esp + 0xc4]
mov dword [esp + 0x8c], ecx
push edx
push eax
lea ecx, [esp + 0xb8]
call fcn.004cc080
push 1
lea ecx, [esp + 0xa4]
mov byte [esp + 0x8f8], 7
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x7c]
mov byte [esp + 0x8f8], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x8f8], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x94]
mov byte [esp + 0x8f8], 4
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
add edi, 0x10
cmp edi, dword [esp + 0x1c]
jne 0x4c9762
mov eax, dword [esp + 0xb4]
mov esi, dword [eax]
cmp esi, eax
je 0x4c9afe
mov ecx, dword [esp + 0x904]
mov eax, dword [esi + 0x10]
mov edx, dword [esp + 0x908]
mov ecx, dword [ecx + 4]
shl eax, 4
add eax, ecx
mov ecx, dword [edx + 8]
push eax
push 1
push ecx
mov ecx, edx
call fcn.00424340
mov eax, dword [esi + 8]
mov ecx, dword [0x5436c4]
cmp eax, ecx
je 0x4c9adc
push eax
call fcn.004cd780
add esp, 4
jmp 0x4c9af3
mov eax, dword [esi + 4]
cmp esi, dword [eax + 8]
jne 0x4c9aee
mov esi, eax
mov eax, dword [eax + 4]
cmp esi, dword [eax + 8]
je 0x4c9ae4
cmp dword [esi + 8], eax
je 0x4c9af5
mov esi, eax
cmp esi, dword [esp + 0xb4]
jne 0x4c9a9d
lea ecx, [esp + 0xb0]
mov byte [esp + 0x8f4], 3
call fcn.004cbd30
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp esi, edi
mov byte [esp + 0x8f4], 2
je 0x4c9b3a
push 0
mov ecx, esi
call fcn.0044ca30
add esi, 0x10
cmp esi, edi
jne 0x4c9b26
mov esi, dword [esp + 0x18]
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x40]
xor esi, esi
add esp, 4
cmp ecx, esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
je 0x4c9b77
mov al, byte [ecx - 1]
test al, al
je 0x4c9b6b
cmp al, 0xff
je 0x4c9b6b
dec al
mov byte [ecx - 1], al
jmp 0x4c9b77
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x3c], esi
cmp ecx, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
je 0x4c9ba9
mov al, byte [ecx - 1]
test al, al
je 0x4c9b9d
cmp al, 0xff
je 0x4c9b9d
dec al
mov byte [ecx - 1], al
jmp 0x4c9ba9
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x2c], esi
cmp ecx, esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
je 0x4c9bdb
mov al, byte [ecx - 1]
test al, al
je 0x4c9bcf
cmp al, 0xff
je 0x4c9bcf
dec al
mov byte [ecx - 1], al
jmp 0x4c9bdb
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x8ec]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8e8
ret 0x14