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

Disassembly:
push 0xffffffffffffffff
push 0x412ae4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov al, byte [esp + 0x88]
xor esi, esi
mov dword [esp + 0x80], esi
mov byte [esp + 0x28], al
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
push esi
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x88], 1
call fcn.004066a0
mov ebp, dword [esp + 0x8c]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
push eax
push ecx
mov ecx, ebp
call fcn.004066a0
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x88]
mov bl, 2
xor edi, edi
mov byte [esp + 0x80], bl
mov eax, dword [ecx - 8]
test eax, eax
jle 0x40372b
mov al, byte [esi + ecx]
cmp al, 0x22
jne 0x403627
mov edx, dword [esp + 0x18]
xor eax, eax
test edx, edx
sete al
test eax, eax
mov dword [esp + 0x18], eax
je 0x4036c3
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x88]
inc edi
mov dword [esp + 0x14], edi
lea edi, [esi + 1]
push edi
push 0x22
call sub.MFC42.DLL_CString::Find_1
mov ebp, eax
lea edx, [esp + 0x20]
mov ecx, ebp
sub ecx, esi
dec ecx
push ecx
push edi
push edx
lea ecx, [esp + 0x94]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x84], 3
call fcn.0040cffa
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], bl
call fcn.0040cfa6
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.004064f0
mov ecx, dword [esp + 0x88]
lea esi, [ebp - 1]
mov edi, 1
jmp 0x4036bc
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x4036c3
cmp al, 0x20
je 0x4036ae
cmp dword [esp + 0x1c], 1
jne 0x4036ae
mov ecx, dword [esp + 0x14]
push esi
inc ecx
push 0x20
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x90]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x4036d1
sub eax, esi
lea edx, [esp + 0x24]
push eax
push esi
push edx
lea ecx, [esp + 0x94]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x84], 5
call fcn.0040cffa
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], bl
call fcn.0040cfa6
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
push 1
push ecx
lea ecx, [esp + 0x34]
call fcn.00406750
mov ecx, dword [esp + 0x88]
mov al, byte [esi + ecx]
xor edx, edx
cmp al, 0x20
sete dl
mov dword [esp + 0x1c], edx
mov ebp, dword [esp + 0x8c]
mov eax, dword [ecx - 8]
inc esi
cmp esi, eax
jl 0x403587
jmp 0x40372b
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x8c]
mov eax, dword [eax - 8]
sub eax, esi
push eax
push esi
push ecx
lea ecx, [esp + 0x94]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x84], 4
call fcn.0040cffa
lea ecx, [esp + 0x8c]
mov byte [esp + 0x80], bl
call fcn.0040cfa6
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.004064f0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
test ecx, ecx
jne 0x40373b
xor eax, eax
jmp 0x403742
mov eax, edx
sub eax, ecx
sar eax, 2
cmp eax, dword [esp + 0x14]
je 0x4037c4
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 1
call fcn.0040cfa6
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp esi, edi
mov byte [esp + 0x80], 0
je 0x403781
push 0
mov ecx, esi
call fcn.00407100
add esi, 4
cmp esi, edi
jne 0x40376d
mov esi, dword [esp + 0x2c]
push esi
call sub.MFC42.DLL_operatordelete
xor eax, eax
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x80], 0xffffffff
call fcn.0040cfa6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
test edi, edi
je 0x403896
test ecx, ecx
je 0x403896
sub edx, ecx
sar edx, 2
cmp edx, 1
jbe 0x403896
push 0x41b2d8
add ecx, 4
call sub.MFC42.DLL_CString::Find
mov esi, eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x24]
lea ecx, [esi - 3]
push ecx
push edx
lea ecx, [eax + 4]
call sub.MFC42.DLL_CString::Left
push 0x41b2d4
lea ecx, [esp + 0x90]
push eax
push ecx
mov byte [esp + 0x8c], 6
call sub.MFC42.DLL_operator
mov ecx, dword [ebp + 8]
push eax
push 1
push ecx
mov ecx, ebp
mov byte [esp + 0x8c], 7
call fcn.00406750
lea ecx, [esp + 0x8c]
mov byte [esp + 0x80], 6
call fcn.0040cfa6
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], bl
call fcn.0040cfa6
mov eax, dword [esp + 0x2c]
inc esi
lea edx, [esp + 0x8c]
push esi
push edx
lea ecx, [eax + 4]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x84], 8
call fcn.0040cffa
mov byte [esp + 0x80], bl
lea ecx, [esp + 0x8c]
jmp 0x40393c
push 0x41b2d8
call sub.MFC42.DLL_CString::Find
mov esi, eax
lea edx, [esp + 0x24]
lea ecx, [esi - 3]
push ecx
mov ecx, dword [esp + 0x30]
push edx
call sub.MFC42.DLL_CString::Left
push 0x41b2d4
push eax
lea eax, [esp + 0x94]
mov byte [esp + 0x88], 9
push eax
call sub.MFC42.DLL_operator
mov ecx, dword [ebp + 8]
push eax
push 1
push ecx
mov ecx, ebp
mov byte [esp + 0x8c], 0xa
call fcn.00406750
lea ecx, [esp + 0x8c]
mov byte [esp + 0x80], 9
call fcn.0040cfa6
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], bl
call fcn.0040cfa6
inc esi
lea ecx, [esp + 0x8c]
push esi
push ecx
mov ecx, dword [esp + 0x34]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x84], 0xb
call fcn.0040cffa
mov byte [esp + 0x80], bl
lea ecx, [esp + 0x8c]
call fcn.0040cfa6
mov dl, byte [esp + 0x88]
mov esi, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x3c], 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 edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x3c]
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 0x40399a
mov edi, dword [esp + 0x3c]
mov ecx, ebx
mov eax, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
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 cl, byte [esp + 0x88]
xor esi, esi
mov byte [esp + 0x48], cl
push esi
lea ecx, [esp + 0x4c]
mov byte [esp + 0x84], 0xc
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 byte [esp + 0x80], 0xd
mov eax, dword [esp + 0x3c]
cmp eax, esi
jne 0x4039cf
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]
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x48]
push edx
push eax
mov eax, dword [esp + 0x58]
push eax
push esi
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]
cmp eax, esi
je 0x403b49
mov edi, 0x41b2d8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push 0x41b2d8
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_first_of_char_const___unsigned_int__unsigned_int_const]
push eax
lea ecx, [esp + 0x6c]
push esi
push ecx
lea ecx, [esp + 0x44]
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]
mov byte [esp + 0x80], 0xe
mov ecx, dword [edx]
push ecx
push esi
push eax
lea ecx, [esp + 0x54]
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_]
push 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x84], 0xd
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, 0x41b2d8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
je 0x403a91
mov eax, dword [esp + 0x40]
cmp eax, esi
jbe 0x403a91
mov esi, dword [esp + 0x3c]
lea ebx, [esi + eax]
cmp esi, ebx
jae 0x403a91
movsx edx, byte [esi]
push edi
push edx
push 0x41b2d8
call dword [sym.imp.MSVCRT.dll_memchr]
add esp, 0xc
test eax, eax
jne 0x403af5
inc esi
cmp esi, ebx
jb 0x403a75
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov esi, dword [eax]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
inc esi
lea eax, [esp + 0x58]
mov edx, dword [ecx]
lea ecx, [esp + 0x38]
push edx
push esi
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__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
xor esi, esi
mov byte [esp + 0x80], 0xf
mov edx, dword [ecx]
lea ecx, [esp + 0x38]
push edx
push esi
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 + 0x5c]
mov byte [esp + 0x80], 0xd
cmp eax, esi
je 0x403b04
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x403afb
cmp al, 0xff
je 0x403afb
dec al
mov byte [ecx], al
jmp 0x403b04
sub esi, dword [esp + 0x3c]
jmp 0x403a98
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x5c], esi
cmp eax, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
jne 0x403b1d
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 eax
lea eax, [esp + 0x14]
push 0x41b2d0
push eax
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp + 8]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 1
push edx
mov ecx, ebp
call fcn.00406750
xor esi, esi
jmp 0x4039c2
mov eax, dword [ebp + 4]
cmp eax, esi
jne 0x403b54
xor ebx, ebx
jmp 0x403b5c
mov ebx, dword [ebp + 8]
sub ebx, eax
sar ebx, 2
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x403b81
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x403b78
cmp al, 0xff
je 0x403b78
dec al
mov byte [ecx], al
jmp 0x403b81
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x4c], esi
cmp eax, esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
je 0x403bb2
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x403ba9
cmp al, 0xff
je 0x403ba9
dec al
mov byte [ecx], al
jmp 0x403bb2
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov byte [esp + 0x80], 1
call fcn.0040cfa6
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
cmp esi, eax
mov byte [esp + 0x80], 0
mov edi, eax
je 0x403bf7
mov ecx, esi
call fcn.0040cfa6
add esi, 4
cmp esi, edi
jne 0x403be5
mov esi, dword [esp + 0x2c]
push esi
call sub.MFC42.DLL_operatordelete
xor eax, eax
add esp, 4
lea ecx, [esp + 0x88]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x80], 0xffffffff
call fcn.0040cfa6
mov ecx, dword [esp + 0x78]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret