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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41d4a1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 0xb8]
xor ebx, ebx
push ebx
push ebx
push 0x1009
push eax
mov dword [esp + 0x48], ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 0xf0]
cmp eax, ebx
je 0x40ce54
push eax
call sub.MFC71.DLL_operator_delete_1
add esp, 4
lea ecx, [esp + 0x14]
mov dword [ebp + 0xf0], ebx
mov dword [ebp + 0xf4], ebx
mov dword [ebp + 0xf8], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x18]
mov dword [esp + 0x21c], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x21c], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x1d8]
mov byte [esp + 0x21c], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x24], ebx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0xc0]
mov byte [esp + 0x21c], 7
call sub.MFC71.DLL_CFileFind::CFileFind
lea esi, [ebp + 0x10c]
push 0x41fd49
mov ecx, esi
mov byte [esp + 0x220], 8
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x40d820
call sub.MFC71.DLL_AfxGetThread
cmp eax, ebx
je 0x40cf20
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40cf22
xor eax, eax
mov eax, dword [eax + 0x454]
mov eax, dword [eax + 0x54]
cmp dword [eax + 0x164], 1
jle 0x40cf43
mov eax, dword [esi]
push eax
push str._s_.
lea ecx, [esp + 0x20]
push ecx
jmp 0x40cf50
mov edx, dword [esi]
push edx
push str._s.
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0xc
push str.logs_
lea ecx, [ebp + 0xfc]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.00407b30
lea ecx, [esp + 0x24]
push ecx
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x234], 9
call fcn.00407f80
add esp, 0x18
push ebx
mov ecx, eax
mov byte [esp + 0x220], 0xa
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [esp + 0xc8]
call sub.MFC71.DLL_CFileFind::FindFile
lea ecx, [esp + 0x34]
mov esi, eax
call dword [0x41f228]
lea ecx, [esp + 0x54]
mov byte [esp + 0x21c], 8
call dword [0x41f228]
cmp esi, ebx
je 0x40d814
mov edi, edi
lea ecx, [esp + 0xc0]
call sub.MFC71.DLL_CFileFind::FindNextFileA
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0xc4]
call sub.MFC71.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x220], 0xb
call dword [0x41f264]
lea ecx, [esp + 0x54]
mov byte [esp + 0x21c], 8
call dword [0x41f228]
push 0x2e
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::ReverseFind]
inc eax
push eax
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x220], 0xc
call dword [0x41f264]
lea ecx, [esp + 0x34]
mov byte [esp + 0x21c], 8
call dword [0x41f228]
push 0x4205e4
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x40d085
push 0x4205e0
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x40d807
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0xc4]
call sub.MFC71.DLL_CFileFind::GetFileTitle
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x220], 0xd
call dword [0x41f264]
lea ecx, [esp + 0xb8]
mov byte [esp + 0x21c], 8
call dword [0x41f228]
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0xd8]
push ebx
rep stosd dword es:[edi], eax
push 0x2d
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find]
test eax, eax
jle 0x40d11e
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xdc]
push ecx
push str.______d
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ebx, dword [sym.imp.MSVCR71.dll_sscanf]
push eax
call ebx
add esp, 0x10
lea edx, [esp + 0xd8]
push edx
lea ecx, [esp + 0x40]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
jmp 0x40d15f
lea eax, [esp + 0xd8]
push eax
push 0x4205d0
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_sscanf]
add esp, 0xc
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esp + 0x40]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
mov ebx, dword [sym.imp.MSVCR71.dll_sscanf]
mov dword [esp + 0x60], 1
mov edx, dword [esp + 0x60]
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0xc4]
mov dword [esp + 0x6c], edx
call sub.MFC71.DLL_CFileFind::GetFilePath
push 0x4205cc
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
lea ecx, [esp + 0xa4]
mov dword [esp + 0x98], esi
call dword [0x41f228]
test esi, esi
je 0x40d805
test byte [esi + 0xc], 0x10
jne 0x40d7fb
lea ebx, [ebx]
mov ebp, dword [sym.imp.MSVCR71.dll_fgets]
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0xd8]
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xdc]
push 0xff
push ecx
call ebp
lea eax, [esp + 0xe4]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d1f3
sub eax, edx
mov dword [esp + 0x30], eax
je 0x40d7ed
mov al, byte [esp + 0xd8]
cmp al, 0x4f
je 0x40d21d
cmp al, 0x53
je 0x40d21d
cmp al, 0x5a
jne 0x40d7ed
lea edx, [esp + 0xd8]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
push 0
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator]
cmp al, 0x4f
jne 0x40d24a
mov edi, 1
mov dword [esp + 0x64], edi
jmp 0x40d266
push 0
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator]
xor ecx, ecx
cmp al, 0x53
setne cl
add ecx, 2
mov dword [esp + 0x64], ecx
mov edi, ecx
push 1
lea edx, [esp + 0xb4]
push edx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x220], 0xe
call dword [0x41f264]
lea ecx, [esp + 0xb0]
mov byte [esp + 0x21c], 8
call dword [0x41f228]
cmp edi, 1
lea ecx, [esp + 0x28]
je 0x40d4d3
cmp edi, 3
je 0x40d4da
push 0x4205c8
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x50]
push ecx
push str._d__d
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call ebx
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xa0], eax
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0xe8]
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xec]
push 0xff
push ecx
mov dword [esp + 0xa8], edx
call ebp
lea eax, [esp + 0xf4]
add esp, 0x1c
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d328
sub eax, edx
mov dword [esp + 0x30], eax
je 0x40d7ed
cmp byte [esp + 0xd8], 0x50
jne 0x40d7ed
lea edx, [esp + 0xd8]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
push 1
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x220], 0x10
call dword [0x41f264]
lea ecx, [esp + 0xa0]
mov byte [esp + 0x21c], 8
call dword [0x41f228]
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0xb4]
push eax
lea ecx, [esp + 0x54]
push ecx
push str._d__d___d__d_
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call ebx
mov edx, dword [esp + 0xc4]
mov eax, dword [esp + 0xc0]
mov ebp, dword [esp + 0x60]
mov ebx, dword [esp + 0x74]
inc edx
inc eax
mov dword [esp + 0xa0], eax
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0xf0]
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xf4]
push 0xff
push ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0x90], ebp
mov dword [esp + 0x94], ebx
call dword [sym.imp.MSVCR71.dll_fgets]
lea eax, [esp + 0xfc]
add esp, 0x24
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d428
sub eax, edi
mov dword [esp + 0x30], eax
je 0x40d7e7
cmp byte [esp + 0xd8], 0x4c
jne 0x40d7e7
lea edx, [esp + 0xd8]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
push 1
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x220], 0x11
call dword [0x41f264]
lea ecx, [esp + 0xb4]
mov byte [esp + 0x21c], 8
call dword [0x41f228]
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x34]
push eax
push str.__d__d__d____d__d__d_
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_sscanf]
add esp, 0x20
jmp 0x40d65c
push 0x420594
jmp 0x40d4df
push 0x420590
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x54]
push eax
push str._d__d__d
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call ebx
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x5c]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0xec]
push esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xf0]
push 0xff
push ecx
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x90], ebx
call dword [sym.imp.MSVCR71.dll_fgets]
lea eax, [esp + 0xf8]
add esp, 0x20
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d560
sub eax, edx
mov dword [esp + 0x30], eax
je 0x40d7e7
cmp byte [esp + 0xd8], 0x4c
jne 0x40d7e7
lea edx, [esp + 0xd8]
push edx
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_1]
push 1
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Mid]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x220], 0xf
call dword [0x41f264]
lea ecx, [esp + 0xbc]
mov byte [esp + 0x21c], 8
call dword [0x41f228]
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x34]
push eax
push str.__d__d__d____d__d__d_
lea ecx, [esp + 0x2c]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.MSVCR71.dll_sscanf]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x4c]
add esp, 0x20
cmp eax, esi
jne 0x40d62e
test eax, eax
jne 0x40d622
mov eax, 1
mov ecx, 2
jmp 0x40d646
mov eax, 3
mov ecx, 4
jmp 0x40d646
xor ecx, ecx
test eax, eax
setne cl
lea ecx, [ecx + ecx + 1]
mov eax, ecx
xor ecx, ecx
test esi, esi
setne cl
lea ecx, [ecx + ecx + 1]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ecx
fild dword [esp + 0x40]
mov edi, dword [esp + 0x24]
inc edi
push edi
fstp dword [esp + 0x78]
lea edx, [esp + 0x18]
fild dword [esp + 0x54]
push 0x420580
push edx
fstp dword [esp + 0x84]
fild dword [esp + 0x50]
fstp dword [esp + 0x88]
fild dword [esp + 0x64]
fstp dword [esp + 0x8c]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov esi, dword [esp + 0x38]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x38]
push eax
add esi, 0x98
push 1
mov ecx, esi
call sub.MFC71.DLL_CListCtrl::InsertItem
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ecx, dword [esp + 0x24]
push eax
push 1
push ecx
mov ecx, esi
call sub.MFC71.DLL_CListCtrl::SetItemText
push ebp
lea edx, [esp + 0x18]
push 0x42057c
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov ebp, dword [esp + 0x24]
push eax
push 2
push ebp
mov ecx, esi
call sub.MFC71.DLL_CListCtrl::SetItemText
push ebx
lea eax, [esp + 0x18]
push 0x42057c
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 3
push ebp
mov ecx, esi
call sub.MFC71.DLL_CListCtrl::SetItemText
mov eax, dword [esp + 0x64]
cmp eax, 1
je 0x40d76b
cmp eax, 3
je 0x40d76b
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x8c]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._5d__5d
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0x10
jmp 0x40d786
mov ecx, dword [esp + 0x8c]
push ecx
lea edx, [esp + 0x18]
push 0x420570
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 4
push ebp
mov ecx, esi
call sub.MFC71.DLL_CListCtrl::SetItemText
mov eax, dword [esp + 0x68]
push eax
lea ecx, [esp + 0x18]
push 0x420570
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0xc
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
push 5
push ebp
mov ecx, esi
call sub.MFC71.DLL_CListCtrl::SetItemText
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x64]
push edx
add ecx, 0xec
call fcn.0040beb0
mov esi, dword [esp + 0x98]
mov dword [esp + 0x24], edi
mov ebx, dword [sym.imp.MSVCR71.dll_sscanf]
test byte [esi + 0xc], 0x10
je 0x40d1c0
mov ebp, dword [esp + 0x38]
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x9c], ebx
jne 0x40cfd0
lea ecx, [esp + 0xc0]
call sub.MFC71.DLL_CFileFind::Close
mov eax, dword [ebp + 0xb8]
push ebx
push ebx
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jle 0x40d8bd
push 3
push 3
push ebx
lea ecx, [ebp + 0x98]
mov dword [ebp + 0x108], ebx
call sub.MFC71.DLL_CListCtrl::SetItemState
call sub.MFC71.DLL_AfxGetThread
cmp eax, ebx
je 0x40d864
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40d866
xor eax, eax
mov eax, dword [eax + 0x454]
mov esi, dword [eax + 0x54]
mov eax, dword [ebp + 0x110]
cmp eax, ebx
je 0x40d890
push eax
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esi + 0x58]
call fcn.0040b630
mov eax, dword [eax]
mov byte [eax + 0xad], 0
mov eax, dword [ebp + 0x114]
cmp eax, ebx
je 0x40d8b1
push eax
lea edx, [esp + 0x34]
push edx
lea ecx, [esi + 0x58]
call fcn.0040b630
mov eax, dword [eax]
mov byte [eax + 0xae], 0
mov dword [ebp + 0x114], ebx
mov dword [ebp + 0x110], ebx
mov ecx, ebp
call fcn.0040c340
lea ecx, [esp + 0xc0]
mov byte [esp + 0x21c], 7
call fcn.0041c420
lea ecx, [esp + 0x3c]
call dword [0x41f228]
lea ecx, [esp + 0x1d8]
mov byte [esp + 0x21c], 5
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x1f4]
mov byte [esp + 0x21c], 4
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x28]
call dword [0x41f228]
lea ecx, [esp + 0x1c]
call dword [0x41f228]
lea ecx, [esp + 0x10]
call dword [0x41f228]
lea ecx, [esp + 0x18]
call dword [0x41f228]
lea ecx, [esp + 0x14]
call dword [0x41f228]
mov ecx, dword [esp + 0x214]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret