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

Disassembly:
push 0xffffffffffffffff
push 0x423533
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x26c3ffff
push 0x36ffffff
mov dword [esp + 0x18], ebx
call fcn.0040e960
add word [0x42ca58], ax
mov ax, word [0x42ca64]
add esp, 8
xor ecx, ecx
cmp ax, bx
setne cl
add ax, cx
push ebx
mov word [0x42ca64], ax
mov al, byte [esp + 0x7c]
lea ecx, [esp + 0x48]
mov byte [esp + 0x48], al
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, 0x42ba1c
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x48]
push ebp
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 0x40984b
mov edi, dword [esp + 0x48]
mov ecx, ebp
mov edx, ecx
mov esi, 0x42ba1c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
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__::_Eos_unsigned_int_]
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x44]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x78], 1
call fcn.00404660
add esp, 0xc
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 3
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 0x372fffff
push 0xcdffffff
call fcn.0040e960
mov cl, byte [0x42ca4f]
add cl, al
movsx eax, byte [0x42ca48]
mov byte [0x42ca4f], cl
mov ecx, dword [0x42ca80]
push eax
push ecx
call fcn.0040e910
mov dl, byte [esp + 0x88]
add word [0x42ca5e], ax
add esp, 0x10
lea ecx, [esp + 0x54]
mov byte [esp + 0x54], dl
push ebx
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, 0x42ba1c
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x58]
push ebp
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 0x409912
mov edi, dword [esp + 0x58]
mov ecx, ebp
mov eax, ecx
mov esi, 0x42ba1c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x58]
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 edx, dword [esp + 0x7c]
lea ecx, [esp + 0x54]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
mov byte [esp + 0x78], 4
call fcn.00404660
add esp, 0xc
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x70], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
movsx ecx, byte [0x42ca49]
movsx edx, byte [0x42ca51]
push ecx
push edx
call fcn.0040e9b0
mov cl, byte [0x42ca4d]
mov edi, dword [esp + 0x40]
add cl, al
mov eax, dword [0x42ca80]
dec word [0x42ca60]
push 0xb875ffff
push eax
mov byte [0x42ca4d], cl
call fcn.0040ea40
mov byte [0x42ca49], al
mov eax, dword [esp + 0x4c]
add esp, 0x10
cmp edi, eax
je 0x409c4e
movsx ecx, word [0x42ca62]
mov edx, dword [0x42ca88]
push ecx
push edx
call fcn.0040e9b0
mov dl, byte [0x42ca49]
add dl, al
mov al, byte [0x42ca58]
imul byte [0x42ca88]
movsx ecx, byte [0x42ca4d]
mov byte [0x42ca4f], al
mov byte [0x42ca49], dl
movsx eax, word [0x42ca62]
push eax
push ecx
call fcn.0040e9b0
movsx edx, word [0x42ca52]
mov dword [0x42ca74], eax
and edx, 0x4c17ffff
movsx eax, word [0x42ca56]
push eax
push 0xee0dffff
xor bl, bl
mov dword [0x42ca70], edx
call fcn.0040e7e0
push 0xefc9ffff
push 0x3febffff
mov dword [0x42ca80], eax
call fcn.0040e7e0
movsx ecx, word [0x42ca62]
mov esi, dword [esp + 0x48]
push 0x4ad7ffff
push ecx
mov word [0x42ca5e], ax
call fcn.0040e9f0
mov cl, byte [0x42ca48]
add esp, 0x28
add cl, al
mov eax, dword [esp + 0x2c]
cmp esi, eax
mov byte [0x42ca48], cl
je 0x409b86
movsx edx, word [0x42ca62]
movsx eax, byte [0x42ca4d]
push edx
push eax
call fcn.0040e7e0
mov edx, dword [0x42ca8c]
mov ecx, dword [0x42ca74]
add edx, eax
add ecx, 0x82360001
mov dword [0x42ca8c], edx
push 0x3ef1ffff
movsx edx, byte [0x42ca50]
push edx
mov dword [0x42ca78], ecx
call fcn.0040e7a0
mov word [0x42ca5a], ax
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
add esp, 0x10
test eax, eax
jne 0x409ab0
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 ecx
push eax
mov eax, dword [edi + 8]
mov ecx, edi
push eax
push 0
call dword [sym.imp.MSVCP60.dll_public:_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::compare_unsigned_int__unsigned_int__char_const___unsigned_int_const]
test eax, eax
je 0x409b2e
mov cl, byte [0x42ca6c]
push 0x383fffff
inc cl
push 0x9dc5ffff
mov byte [0x42ca50], cl
call fcn.0040e7e0
movsx edx, byte [0x42ca4b]
push edx
push 0x387fffff
mov dword [0x42ca70], eax
add esi, 0x10
call fcn.0040e8d0
mov cl, byte [0x42ca49]
add esp, 0x10
add cl, al
mov ax, word [0x42ca5a]
add word [0x42ca5c], ax
mov eax, dword [esp + 0x2c]
inc word [0x42ca52]
cmp esi, eax
mov byte [0x42ca49], cl
jne 0x409a51
jmp 0x409b86
movsx ecx, word [0x42ca64]
push ecx
push 0xd805ffff
call fcn.0040e9b0
push 0x3ed1ffff
push 0xa7e5ffff
mov word [0x42ca58], ax
mov bl, 1
call fcn.0040ea40
mov dx, word [0x42ca5a]
mov byte [0x42ca51], al
movsx eax, word [0x42ca56]
dec dx
push eax
push 0xd20fffff
mov word [0x42ca58], dx
call fcn.0040e890
add esp, 0x18
mov byte [0x42ca51], al
mov al, byte [0x42ca49]
push 0x1a4fffff
inc al
push 0xab59ffff
mov byte [0x42ca49], al
call fcn.0040e7a0
mov cl, byte [0x42ca4f]
mov edx, dword [0x42ca68]
add cl, al
mov byte [0x42ca4f], cl
movsx ecx, byte [0x42ca4e]
push ecx
push edx
call fcn.0040e890
add esp, 0x10
mov dword [0x42ca84], eax
test bl, bl
jne 0x409be0
mov eax, dword [esp + 0x2c]
push edi
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.0040dcf0
movsx ecx, word [0x42ca5e]
movsx edx, word [0x42ca54]
push ecx
push edx
call fcn.0040e7a0
mov cl, byte [0x42ca4f]
push 0xba65ffff
add cl, al
mov eax, dword [0x42ca80]
push eax
mov byte [0x42ca4f], cl
call fcn.0040e910
movsx ecx, word [0x42ca5a]
add word [0x42ca5e], ax
push ecx
push 0xb045ffff
call fcn.0040ea40
mov edx, dword [0x42ca74]
add edi, 0x10
add edx, eax
mov eax, dword [esp + 0x54]
add esp, 0x18
cmp edi, eax
mov dword [0x42ca74], edx
jne 0x409991
xor ebx, ebx
movsx edx, word [0x42ca54]
movsx eax, byte [0x42ca51]
push edx
push eax
call fcn.0040e9f0
mov cl, byte [0x42ca4f]
mov dl, byte [esp + 0x80]
add cl, al
add esp, 8
mov byte [0x42ca4f], cl
mov cl, byte [0x42ca4d]
neg cl
mov byte [0x42ca50], cl
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], 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_]
movsx eax, word [0x42ca62]
mov ecx, dword [0x42ca78]
push eax
push ecx
mov byte [esp + 0x74], 7
call fcn.0040e840
mov edx, dword [0x42ca78]
mov esi, dword [esp + 0x30]
push edx
push 0x93c3ffff
mov byte [0x42ca50], al
mov dword [esp + 0x88], esi
call fcn.0040e890
mov word [0x42ca64], ax
push 0x873dffff
movsx eax, byte [0x42ca51]
push eax
call fcn.0040e840
mov byte [0x42ca4e], al
mov eax, dword [esp + 0x44]
add esp, 0x18
cmp esi, eax
je 0x409eb1
mov al, byte [0x42ca4c]
test al, al
jne 0x409d17
cmp word [0x42ca56], bx
mov word [0x42ca56], bx
je 0x409d20
mov word [0x42ca56], 1
push 0x844dffff
push 0x9019ffff
call fcn.0040e8d0
mov ebp, dword [esp + 0x24]
add esp, 8
cmp ebp, ebx
mov word [0x42ca5a], ax
jbe 0x409db0
mov edi, 0x42ba1c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
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 edx, dword [ecx]
sub edx, ebp
cmp edx, edi
ja 0x409d69
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ebp, dword [esp + 0x1c]
cmp edi, ebx
jbe 0x409db0
add ebp, edi
push ebx
push ebp
lea ecx, [esp + 0x1c]
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 0x409db0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add eax, ecx
mov ecx, edi
mov edx, ecx
mov esi, 0x42ba1c
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x1c], ebp
mov byte [eax + ebp], 0
mov ecx, dword [0x42ca70]
push 0x2451ffff
push ecx
mov dword [0x42ca74], 1
call fcn.0040ea40
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
add word [0x42ca58], ax
mov ecx, dword [esi + 8]
add esp, 8
mov eax, dword [edx]
mov ebp, eax
cmp ecx, ebp
jae 0x409de8
mov ebp, ecx
sub eax, dword [esp + 0x1c]
cmp eax, ebp
ja 0x409df6
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
cmp ebp, ebx
jbe 0x409e4c
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebx, [eax + ebp]
push ebx
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 0x409e4a
mov esi, dword [esi + 4]
test esi, esi
jne 0x409e1f
mov esi, 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]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
lea edi, [edx + ecx]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x78]
mov dword [esp + 0x1c], ebx
mov byte [ecx + ebx], 0
xor ebx, ebx
movsx edx, byte [0x42ca49]
mov ecx, dword [0x42ca68]
mov edi, dword [0x42ca8c]
mov eax, 0xf0f7ffff
and ecx, edi
sub eax, edx
mov edx, dword [0x42ca78]
add edx, ecx
add esi, 0x10
push 0xd83ffff
push 0xe1cfffff
mov dword [0x42ca6c], eax
mov dword [0x42ca78], edx
mov dword [esp + 0x80], esi
call fcn.0040e9f0
mov ecx, dword [0x42ca84]
add esp, 8
add ecx, eax
mov eax, dword [esp + 0x2c]
cmp esi, eax
mov dword [0x42ca84], ecx
jne 0x409cfe
movsx edx, byte [0x42ca50]
mov ebp, dword [esp + 0x74]
mov al, byte [esp + 0x14]
sub edx, 0x7ab80001
mov dword [0x42ca74], edx
mov byte [ebp], al
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
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 + 0x14]
mov edx, dword [ecx]
mov ecx, ebp
push edx
push ebx
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 dword [esp + 0x10], 1
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x409f1c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x409f13
cmp al, 0xff
je 0x409f13
dec al
mov byte [ecx], al
jmp 0x409f1c
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
cmp esi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov byte [esp + 0x6c], 3
je 0x409f4e
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add esi, 0x10
cmp esi, edi
jne 0x409f39
mov esi, dword [esp + 0x38]
push esi
call sub.MFC42.DLL_operatordelete
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
add esp, 4
cmp esi, edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x6c], 0
je 0x409f89
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
add esi, 0x10
cmp esi, edi
jne 0x409f74
mov esi, dword [esp + 0x28]
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x68]
add esp, 4
mov eax, ebp
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret