Function at 0x4035d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4046f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov eax, dword [esi + 0x5cc]
push ebp
push ebp
push 0x1004
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], 0x12345678
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebp
mov dword [esp + 0x1c], eax
jle 0x4039c3
lea edi, [esi + 0x60]
mov ecx, edi
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, dword [edi]
cmp dword [ecx - 8], ebp
jne 0x403663
push 1
lea edx, [esp + 0x1c]
push ebp
push edx
lea ecx, [esi + 0x5ac]
call sub.MFC42.DLL_CListCtrl::GetItemText
push eax
lea ecx, [esi + 0x170]
mov dword [esp + 0x50], ebp
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00403d82
jmp 0x40366f
push edi
lea ecx, [esi + 0x170]
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x20]
lea edi, [esi + 0x68]
push eax
push edi
call dword [sym.imp.MSVCRT.dll__stat]
mov eax, dword [esp + 0x3c]
add esp, 8
cmp eax, ebp
mov dword [0x407024], eax
jne 0x40369e
push ebp
push 0x407184
push 0x4072c8
jmp 0x4039cf
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
cmp eax, ebp
mov dword [esi + 0x16c], eax
jne 0x4036c2
push ebp
push 0x407184
push 0x4072a4
jmp 0x4039cf
push 0x40718c
push edi
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
cmp ebx, ebp
jne 0x4036f7
mov ecx, dword [esi + 0x16c]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push ebp
push 0x407184
push 0x407284
jmp 0x4039cf
mov edx, dword [0x407024]
mov eax, dword [esi + 0x16c]
push ebx
push edx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
push ebx
mov edi, eax
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [0x407024]
add esp, 0x14
cmp edi, eax
je 0x403743
mov ecx, dword [esi + 0x16c]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push ebp
push 0x407184
push 0x407258
jmp 0x4039cf
lea ecx, [eax - 4]
test ecx, ecx
jbe 0x403791
mov edx, dword [esi + 0x16c]
xor eax, eax
lea ecx, [edx + ebp]
mov bl, byte [ecx]
cmp bl, byte [esp + eax + 0x14]
jne 0x403764
inc eax
inc ecx
cmp eax, 4
jb 0x403755
cmp eax, 4
je 0x40377a
mov eax, dword [0x407024]
add ebp, 4
lea ecx, [eax - 4]
cmp ebp, ecx
jb 0x403750
jmp 0x403791
mov eax, dword [0x407020]
mov dword [edx + ebp], eax
mov ecx, dword [0x407024]
mov dword [edx + ebp + 4], ecx
mov eax, dword [0x407024]
add eax, 0xfffffffc
cmp ebp, eax
jb 0x4037b9
mov edx, dword [esi + 0x16c]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push 0
push 0x407184
push 0x407234
jmp 0x4039cf
mov ecx, esi
call fcn.00402f70
mov eax, dword [esi + 0x5ec]
push 0x407148
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4037fb
mov eax, dword [esi + 0x16c]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push ebx
push 0x407184
push 0x407208
jmp 0x4039cf
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x403930
mov ecx, dword [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
lea ecx, [esi + 0x5ac]
call sub.MFC42.DLL_CListCtrl::GetItemText
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x54], 1
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 8
test eax, eax
jne 0x40398d
mov eax, dword [esp + 0x34]
test eax, eax
je 0x40398d
mov edx, dword [esi + 0x16c]
push ebx
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push 1
push edx
call edi
mov ecx, dword [esp + 0x20]
push 0x40718c
add ecx, eax
mov eax, dword [esp + 0x28]
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x40396f
push ebx
push 4
lea ecx, [esp + 0x3c]
push 1
push ecx
call edi
mov edx, dword [esp + 0x20]
push ebp
add edx, eax
mov eax, dword [esi + 0x16c]
mov dword [esp + 0x24], edx
mov edx, dword [0x407024]
push edx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov edi, eax
add esp, 0x20
test edi, edi
je 0x403900
mov ecx, dword [esi + 0x16c]
push ebx
push edi
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edx, dword [esp + 0x20]
push ebp
add edx, eax
mov eax, dword [esi + 0x16c]
mov dword [esp + 0x24], edx
mov edx, dword [0x407024]
push edx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
mov edi, eax
add esp, 0x20
test edi, edi
jne 0x4038c5
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00403d82
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x40380f
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esi + 0x16c]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 8
mov ecx, esi
push 0x40
push 0x4070c0
push 0x4071f0
call sub.MFC42.DLL_CWnd::MessageBoxA
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
mov ecx, dword [esi + 0x16c]
push ecx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push 0
push 0x407184
push 0x4071cc
jmp 0x4039a9
mov edx, dword [esi + 0x16c]
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push 0
push 0x407184
push 0x4071a8
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
lea ecx, [esp + 0x14]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00403d82
jmp 0x4039d6
push 0x40
push 0x4070c0
push 0x407198
mov ecx, esi
call sub.MFC42.DLL_CWnd::MessageBoxA
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret