Function at 0x406ff0
Capabilities:
Check os version
Copy file
Delete file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4179be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x530
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x44], ebp
push ecx
lea eax, [esp + 0x558]
mov edi, 2
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
mov dword [esp + 0x550], edi
call sub.MFC42.DLL_CString::CString_1
call fcn.00406850
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x421744
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x422c90
call fcn.00402730
lea ecx, [esp + 0x554]
push str.mapbymd5.txt
lea edx, [esp + 0x30]
push ecx
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [esp + 0x2c]
push ebp
push eax
mov byte [esp + 0x550], 3
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jge 0x4070aa
mov esi, dword [esp + 0x550]
push 0x422d40
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x44], 1
jmp 0x407b7e
mov eax, 0x41d38c
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebp
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vbtable]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x9c], ecx
lea ecx, [esp + 0xf8]
mov byte [esp + 0x548], 5
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::ios_base::constructor_void_]
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0x44], edi
mov dword [esp + 0xf8], edx
push ebp
lea eax, [esp + 0xa8]
push ebp
push eax
lea ecx, [esp + 0xa8]
mov byte [esp + 0x554], 6
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
push ebp
lea ecx, [esp + 0xa8]
mov dword [esp + 0x54c], 7
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::constructor_struct__iobuf__]
mov ecx, dword [esp + 0x9c]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
push 1
push esi
mov edx, dword [ecx + 4]
lea ecx, [esp + 0xac]
mov byte [esp + 0x550], 8
mov dword [esp + edx + 0xa4], eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_filebuf_char__struct_std::char_traits_char______thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::open_char_const___int_]
test eax, eax
jne 0x407191
mov ecx, dword [esp + 0x9c]
push ebp
push edi
mov edx, dword [ecx + 4]
lea ecx, [esp + edx + 0xa4]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov byte [esp + 0x548], 9
mov dword [esp + 0x70], ebp
mov eax, dword [esp + 0x9c]
lea edx, [esp + 0x78]
push edx
mov ecx, dword [eax + 4]
lea ecx, [esp + ecx + 0xa0]
call dword [sym.imp.MSVCP60.dll_public:_class_std::locale___thiscall_std::ios_base::getloc_void_]
push 1
push ebp
push eax
mov byte [esp + 0x554], 0xa
call fcn.004088b0
add esp, 0xc
lea ecx, [esp + 0x78]
mov byte [esp + 0x548], 9
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::locale::destructor_void_]
push 0xa
lea eax, [esp + 0x144]
push 0x400
push eax
lea ecx, [esp + 0xa8]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::getline_char___int__char_]
lea ecx, [esp + 0x140]
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x20]
mov byte [esp + 0x548], 0xb
cmp dword [edx - 8], ebp
jne 0x407236
mov eax, dword [esp + 0x70]
mov ecx, eax
inc eax
cmp ecx, 0xa
mov dword [esp + 0x70], eax
jg 0x40772d
jmp 0x407717
lea ecx, [esp + 0x12c]
call fcn.00416168
lea edx, [esp + 0x12c]
mov byte [esp + 0x548], 0xc
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push 1
push 0x7c
call fcn.004163ea
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x70], esp
push eax
mov byte [esp + 0x558], 0xd
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x78]
mov byte [esp + 0x554], 0xc
call fcn.004054a0
mov ebx, 1
mov dword [esp + 0x48], eax
cmp eax, ebx
mov dword [esp + 0x64], ebx
jle 0x407703
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x130]
mov byte [esp + 0x548], 0xe
lea edx, [ecx + ebx*4]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x10]
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x54c], 0xf
mov edi, dword [eax - 8]
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, edi
lea edx, [esp + 0x1c]
sub ecx, eax
push ecx
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push 0x2e
lea ecx, [esp + 0x20]
mov byte [esp + 0x54c], 0x10
call sub.MFC42.DLL_CString::ReverseFind
push 0x422d40
lea ecx, [esp + 0x28]
mov esi, eax
call sub.MFC42.DLL_CString::CString_2
cmp esi, ebp
mov byte [esp + 0x548], 0x11
jl 0x407363
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x98]
mov eax, dword [eax - 8]
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x54c], 0x12
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x98]
mov byte [esp + 0x548], 0x11
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x130]
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x558]
mov ecx, dword [eax]
lea eax, [esp + 0x2c]
push ecx
push edx
push str._s_s_s
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x3c]
mov esi, dword [sym.imp.MSVCRT.dll__access]
push ebp
push ecx
call esi
add esp, 0x1c
test eax, eax
jge 0x40740d
push ebp
lea ecx, [esp + 0x130]
call fcn.00407f10
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x55c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x554], 0x13
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x7c]
push eax
mov byte [esp + 0x554], 0x11
call fcn.00405640
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54c], 0x14
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x74]
mov byte [esp + 0x548], 0x11
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
push ebp
push ecx
call esi
add esp, 8
test eax, eax
jge 0x407465
lea ecx, [esp + 0x24]
mov byte [esp + 0x548], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x548], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x548], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x548], 0xc
call sub.MFC42.DLL_CString::CString
jmp 0x4076f2
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x34]
call fcn.00408b00
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x7c]
push 2
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x550], 0x15
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x421728
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [esp + 0x7c]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40755f
add edi, 0xfffffffe
lea edx, [esp + 0x84]
push edi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x54c], 0x16
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x84]
mov byte [esp + 0x548], 0x15
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x8c]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x54c], 0x17
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x8c]
mov byte [esp + 0x548], 0x15
call sub.MFC42.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::TrimLeft
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x94]
mov ecx, dword [ecx - 8]
sub ecx, eax
push ecx
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
mov esi, eax
lea eax, [esp + 0x558]
lea ecx, [esp + 0x554]
push eax
lea edx, [esp + 0x84]
push ecx
push edx
mov byte [esp + 0x554], 0x18
call sub.MFC42.DLL_operator
push esi
push eax
lea eax, [esp + 0x98]
mov byte [esp + 0x550], 0x19
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x54c], 0x1a
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x90]
mov byte [esp + 0x548], 0x19
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x80]
mov byte [esp + 0x548], 0x18
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x94]
mov byte [esp + 0x548], 0x15
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], 0xff
jle 0x40767f
lea edx, [esp + 0x1c]
lea eax, [esp + 0x554]
push edx
lea ecx, [esp + 0x8c]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x54c], 0x1b
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x88]
mov byte [esp + 0x548], 0x15
call sub.MFC42.DLL_CString::CString
push ecx
lea eax, [esp + 0x14]
mov edx, esp
mov dword [esp + 0x1c], esp
push eax
push 0x421710
push edx
call sub.MFC42.DLL_operator_1
mov ecx, 0x422c90
call fcn.00402730
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x54]
call fcn.00408b00
lea ecx, [esp + 0x14]
mov byte [esp + 0x548], 0x11
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x548], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x548], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x548], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x548], 0xc
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x64]
mov eax, dword [esp + 0x48]
inc ebx
cmp ebx, eax
mov dword [esp + 0x64], ebx
jl 0x4072a1
lea ecx, [esp + 0x12c]
mov byte [esp + 0x548], 0xb
call fcn.0041616e
lea ecx, [esp + 0x20]
mov byte [esp + 0x548], 9
call sub.MFC42.DLL_CString::CString
jmp 0x40719d
lea ecx, [esp + 0x20]
mov byte [esp + 0x548], 9
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xf4]
cmp eax, ebp
je 0x407772
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test eax, eax
jne 0x407772
push 2
push ebp
lea ecx, [esp + 0xac]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Init_struct__iobuf___enum_std::basic_filebuf_char__struct_std::char_traits_char__::_Initfl_]
lea eax, [esp + 0xa4]
test eax, eax
jne 0x407794
mov ecx, dword [esp + 0x9c]
push ebp
mov edx, dword [ecx + 4]
mov eax, dword [esp + edx + 0xa4]
lea ecx, [esp + edx + 0xa0]
or al, 2
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x560]
mov ecx, dword [esp + 0x55c]
mov edx, dword [esp + 0x554]
push eax
push ecx
push edx
lea eax, [esp + 0x58]
push str._s_.0f.ini
push eax
mov byte [esp + 0x55c], 0x1c
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
push ecx
mov byte [esp + 0x550], 0x1d
mov ecx, esp
mov dword [esp + 0x70], esp
push str.IsJCFindMap
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x554], 0x1e
mov ecx, esp
mov dword [esp + 0x54], esp
push str.jobinfo
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x422c90
mov byte [esp + 0x554], 0x1c
call fcn.00402c20
mov eax, dword [esp + 0x58]
xor esi, esi
cmp eax, ebp
jle 0x40798d
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
mov bl, 0x20
mov eax, dword [esp + 0x54]
lea ecx, [eax + esi*4]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x54c], 0x1f
call sub.MFC42.DLL_CString::ReverseFind
mov edi, eax
lea edx, [esp + 0x24]
push edi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
mov byte [esp + 0x548], bl
mov eax, dword [eax - 8]
sub eax, edi
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x54c], 0x21
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.004067b0
add esp, 4
test eax, eax
je 0x40794c
mov edx, dword [esp + 0x558]
mov eax, dword [edx - 8]
test eax, eax
je 0x407920
lea eax, [esp + 0x1c]
push 7
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::Right
lea ecx, [esp + 0x1c]
mov byte [esp + 0x548], 0x22
call sub.MFC42.DLL_CString::MakeLower
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
push 0
push edx
mov eax, dword [ecx + esi*4]
push eax
call ebp
test eax, eax
jne 0x40790d
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jl 0x407bd4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x548], 0x21
call sub.MFC42.DLL_CString::CString
jmp 0x40794c
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
push 0
push edx
mov eax, dword [ecx + esi*4]
push eax
call ebp
test eax, eax
jne 0x40794c
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jl 0x407d4a
lea ecx, [esp + 0x20]
mov byte [esp + 0x548], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x548], 0x1f
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x548], 0x1c
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x58]
inc esi
cmp esi, eax
jl 0x407839
xor ebp, ebp
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, ebp
jle 0x4079b0
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x34]
mov eax, dword [eax + esi*4]
push eax
call edi
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
jl 0x40799d
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
je 0x4079d0
push eax
push ecx
call sub.MFC42.DLL_DestructElements
mov ecx, dword [esp + 0x34]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x34], ebp
mov eax, dword [esp + 0x54]
mov dword [esp + 0x3c], ebp
cmp eax, ebp
mov dword [esp + 0x38], ebp
je 0x4079fc
mov edx, dword [esp + 0x58]
push edx
push eax
call sub.MFC42.DLL_DestructElements
mov eax, dword [esp + 0x54]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x54], ebp
mov esi, dword [esp + 0x550]
push 0x422d40
mov ecx, esi
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebp
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x4c]
mov dword [esp + 0x44], 3
mov byte [esp + 0x548], 9
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x9c]
lea ecx, [esp + 0xf8]
mov dword [esp + 0x18], ecx
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x9c], ecx
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_filebuf_char__struct_std::char_traits_char__::vftable]
lea edx, [esp + 0xa4]
mov dword [esp + 0x68], edx
mov dword [esp + 0xa4], eax
mov al, byte [esp + 0xec]
mov byte [esp + 0x548], 0x2d
test al, al
je 0x407aa5
mov eax, dword [esp + 0xf4]
cmp eax, ebp
je 0x407aa5
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test eax, eax
jne 0x407aa5
push 2
push ebp
lea ecx, [esp + 0xac]
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::_Init_struct__iobuf___enum_std::basic_filebuf_char__struct_std::char_traits_char__::_Initfl_]
mov ecx, dword [esp + 0xe8]
cmp ecx, ebp
je 0x407ab7
push 1
call fcn.00403150
lea ecx, [esp + 0xf0]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::locale::destructor_void_]
lea ecx, [esp + 0xa4]
mov byte [esp + 0x548], 0x2b
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [esp + 0x9c]
mov eax, dword [sym.imp.MSVCP60.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov byte [esp + 0x548], 5
mov edx, dword [ecx + 4]
mov dword [esp + edx + 0x9c], eax
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
mov dword [esp + 0xf8], ecx
lea ecx, [esp + 0xf8]
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov dword [esp + 0x50], 0x41d38c
mov eax, dword [esp + 0x54]
mov byte [esp + 0x548], 0x2e
cmp eax, ebp
je 0x407b41
mov edx, dword [esp + 0x58]
push edx
push eax
call sub.MFC42.DLL_DestructElements
mov eax, dword [esp + 0x54]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, 0x41d3a0
mov dword [esp + 0x30], 0x41d38c
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x548], 0x2f
cmp eax, ebp
je 0x407b7a
mov ecx, dword [esp + 0x38]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x34]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x548], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x554]
mov byte [esp + 0x548], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x558]
mov byte [esp + 0x548], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x540]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x53c
ret 0x14
push esi
lea ecx, [esp + 0x34]
call fcn.00407f10
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x422c90
call fcn.00402730
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x422c90
call fcn.00402730
mov esi, dword [esp + 0x550]
lea eax, [esp + 0x10]
push eax
push 0x4216f8
push esi
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], 3
mov byte [esp + 0x548], 0x21
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x548], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x548], 0x1f
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x548], 0x1c
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x548], 9
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x9c]
lea ecx, [esp + 0xf8]
mov dword [esp + 0x18], ecx
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x9c], ecx
lea ecx, [esp + 0xa4]
mov byte [esp + 0x548], 0x23
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::destructor_void_]
mov edx, dword [esp + 0x9c]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov byte [esp + 0x548], 5
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x9c], ecx
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
lea ecx, [esp + 0xf8]
mov dword [esp + 0xf8], edx
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov ebx, 0x41d38c
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x54]
mov byte [esp + 0x548], 0x24
test eax, eax
je 0x407d24
mov ecx, dword [esp + 0x58]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x54]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, 0x41d3a0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x548], 0x25
test eax, eax
je 0x407b7a
jmp 0x407b62
push esi
lea ecx, [esp + 0x34]
call fcn.00407f10
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x422c90
call fcn.00402730
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, 0x422c90
call fcn.00402730
mov esi, dword [esp + 0x550]
lea ecx, [esp + 0x10]
push ecx
push 0x4216f8
push esi
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x20]
mov dword [esp + 0x44], 3
mov byte [esp + 0x548], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x548], 0x1f
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x548], 0x1c
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x548], 9
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x9c]
lea edx, [esp + 0xf8]
mov dword [esp + 0x18], edx
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ifstream_char__struct_std::char_traits_char__::vftable]
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x9c], edx
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_filebuf_char__struct_std::char_traits_char__::vftable]
lea eax, [esp + 0xa4]
mov dword [esp + 0x68], eax
mov dword [esp + 0xa4], ecx
mov al, byte [esp + 0xec]
mov byte [esp + 0x548], 0x28
test al, al
je 0x407e42
lea ecx, [esp + 0xa4]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_filebuf_char__struct_std::char_traits_char______thiscall_std::basic_filebuf_char__struct_std::char_traits_char__::close_void_]
mov ecx, dword [esp + 0xe8]
test ecx, ecx
je 0x407e54
push 1
call fcn.00403150
lea ecx, [esp + 0xf0]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::locale::destructor_void_]
lea ecx, [esp + 0xa4]
mov byte [esp + 0x548], 0x26
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
mov edx, dword [esp + 0x9c]
mov ecx, dword [sym.imp.MSVCP60.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov byte [esp + 0x548], 5
mov eax, dword [edx + 4]
mov dword [esp + eax + 0x9c], ecx
mov edx, dword [sym.imp.MSVCP60.dll_const_std::basic_ios_char__struct_std::char_traits_char__::vftable]
lea ecx, [esp + 0xf8]
mov dword [esp + 0xf8], edx
call dword [sym.imp.MSVCP60.dll_public_virtual:_void___thiscall_std::ios_base::destructor_void_]
mov ebx, 0x41d38c
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x54]
mov byte [esp + 0x548], 0x29
test eax, eax
je 0x407ee0
mov ecx, dword [esp + 0x58]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x54]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edi, 0x41d3a0
mov dword [esp + 0x30], ebx
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x34]
mov byte [esp + 0x548], 0x2a
test eax, eax
je 0x407b7a
jmp 0x407b62