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

Disassembly:
push 0xffffffffffffffff
push 0x4635bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x98]
mov eax, dword [esi + 0x24]
xor ebx, ebx
cmp edi, eax
mov dword [esp + 0x14], ebx
jne 0x439671
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x439671
mov ecx, dword [esi + 0x34]
cmp ecx, 0x20
jne 0x4395bb
mov edi, dword [esp + 0x94]
add eax, 0xfffffff9
push eax
mov eax, dword [esi + 0x38]
add eax, 4
mov ecx, esi
push eax
push edi
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__::substr_unsigned_int__unsigned_int_]
mov eax, edi
jmp 0x439943
cmp ecx, 0x10
jne 0x4395cf
mov ecx, dword [esi + 0x38]
add eax, 0xfffffffc
push eax
add ecx, 2
jmp 0x439659
cmp ecx, 8
jne 0x4395f6
mov edx, dword [esi + 0x38]
mov edi, dword [esp + 0x94]
add eax, 0xfffffff4
add edx, 9
push eax
push edx
push edi
mov ecx, esi
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__::substr_unsigned_int__unsigned_int_]
mov eax, edi
jmp 0x439943
cmp ecx, 2
jne 0x43962b
push eax
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov edi, dword [esi + 0x38]
push ecx
add eax, edi
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00436280
mov esi, dword [esp + 0x9c]
push esi
call fcn.00435c40
add esp, 0xc
jmp 0x439941
cmp ecx, 0x80
jne 0x439655
mov edi, dword [esp + 0x94]
add eax, 0xfffffffd
push eax
mov eax, dword [esi + 0x38]
add eax, 2
mov ecx, esi
push eax
push edi
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__::substr_unsigned_int__unsigned_int_]
mov eax, edi
jmp 0x439943
mov ecx, dword [esi + 0x38]
push eax
mov edi, dword [esp + 0x98]
push ecx
push edi
mov ecx, esi
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__::substr_unsigned_int__unsigned_int_]
mov eax, edi
jmp 0x439943
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c], 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_]
mov ecx, dword [esi + 0x48]
mov eax, edi
sar eax, 0x10
and edi, 0xffff
mov dword [esp + 0x8c], ebx
mov edx, dword [ecx + eax*4]
shl edi, 5
mov ecx, dword [edx + edi + 0x14]
lea eax, [edx + edi]
cmp ecx, ebx
jne 0x4398ee
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
and ecx, 0x3fffff
cmp ecx, edx
je 0x4398ee
mov ecx, dword [eax + 8]
mov ebp, dword [eax + 4]
mov edi, dword [eax + 8]
mov edx, ecx
shr edx, 0x16
sub ebp, edx
mov edx, dword [eax]
mov eax, dword [esi + 4]
and ecx, 0x3fffff
and edi, 0x3fffff
sub ebp, ecx
add edi, edx
cmp eax, ebx
jne 0x4396f0
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]
lea ebx, [eax + edi]
push 0x3c
push ebx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x43987e
sub eax, ebx
cmp eax, ebp
jge 0x43987e
mov eax, dword [esi + 0x40]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push esi
call fcn.00436970
lea ecx, [esp + 0x50]
call fcn.00436990
mov cl, byte [esp + 0x13]
push 0
mov byte [esp + 0x78], cl
lea ecx, [esp + 0x78]
mov dword [esp + 0x54], edi
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 eax, dword [esp + 0x50]
add ebp, edi
mov ebx, 1
cmp eax, ebp
mov byte [esp + 0x8c], bl
jge 0x439856
lea edx, [esp + 0x64]
lea eax, [esp + 0x48]
push edx
push eax
call fcn.00438350
mov eax, dword [esp + 0x6c]
add esp, 8
cmp eax, 2
jne 0x4397d3
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x68]
push ecx
push ecx
add eax, edx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00436280
lea ecx, [esp + 0x40]
push ecx
call fcn.00435c40
add esp, 0xc
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [esp + 0x8c], 2
mov ecx, dword [edx]
push ecx
push 0
push eax
lea ecx, [esp + 0x24]
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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x90], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
jmp 0x43984c
cmp eax, 8
jne 0x43984c
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
add edx, 0xfffffff4
add eax, 9
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
mov ecx, esi
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__::substr_unsigned_int__unsigned_int_]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
xor edi, edi
mov byte [esp + 0x8c], 3
mov ecx, dword [edx]
push ecx
push edi
push eax
lea ecx, [esp + 0x24]
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__::append_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x8c], bl
cmp eax, edi
je 0x439840
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x439837
cmp al, 0xff
je 0x439837
dec al
mov byte [ecx], al
jmp 0x439840
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
cmp dword [esp + 0x50], ebp
jl 0x43975d
mov eax, dword [esp + 0x78]
mov byte [esp + 0x8c], 0
test eax, eax
je 0x4398ee
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4398e5
cmp al, 0xff
je 0x4398e5
dec al
mov byte [ecx], al
jmp 0x4398ee
push ebp
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push ecx
add eax, edi
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00436280
lea edx, [esp + 0x40]
push edx
call fcn.00435c40
add esp, 0xc
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 byte [esp + 0x8c], 4
mov edx, dword [ecx]
lea ecx, [esp + 0x18]
push edx
push 0
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 eax, dword [esp + 0x3c]
mov byte [esp + 0x8c], 0
test eax, eax
je 0x4398ee
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4398e5
cmp al, 0xff
je 0x4398e5
dec al
mov byte [ecx], al
jmp 0x4398ee
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [esp + 0x94]
mov al, byte [esp + 0x18]
xor edi, edi
mov byte [esi], al
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
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 + 0x18]
mov edx, dword [ecx]
mov ecx, esi
push edx
push edi
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 ecx, dword [esp + 0x1c]
cmp ecx, edi
je 0x439941
mov al, byte [ecx - 1]
test al, al
je 0x439937
cmp al, 0xff
je 0x439937
dec al
mov byte [ecx - 1], al
jmp 0x439941
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x80
ret 8