Function at 0x40b440
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x417ec9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x848
mov eax, dword [esp + 0x860]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x860], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x860], 1
call sub.MFC42u.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x864], 2
call sub.MFC42u.DLL_CString::ReverseFind
test eax, eax
je 0x40b511
inc eax
lea ecx, [esp + 0x14]
push eax
push 0
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::Mid
mov edx, dword [esp + 0x86c]
mov bl, 3
push edx
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x868], bl
push eax
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x864], 4
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x860], bl
call fcn.004117b8
lea ecx, [esp + 0x14]
mov byte [esp + 0x860], 2
call fcn.004117b8
jmp 0x40b522
mov ecx, dword [esp + 0x86c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004117c4
push 0x41d9cc
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_2
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x4b4]
lea edi, [esi + 0x4b4]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.004117b8
test bl, bl
je 0x40b5e4
push 0x41d9cc
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
mov bl, 5
push edi
push edx
mov byte [esp + 0x86c], bl
call sub.MFC42u.DLL_operator
mov ecx, dword [esp + 0x868]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x86c], 6
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x864], 7
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x18]
mov byte [esp + 0x860], 6
call fcn.004117b8
lea ecx, [esp + 0x24]
mov byte [esp + 0x860], bl
call fcn.004117b8
mov byte [esp + 0x860], 2
lea ecx, [esp + 0x14]
jmp 0x40b615
mov eax, dword [esp + 0x868]
lea ecx, [esp + 0x18]
push eax
push edi
push ecx
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x864], 8
call sub.MFC42u.DLL_CString::operator_2
mov byte [esp + 0x860], 2
lea ecx, [esp + 0x18]
call fcn.004117b8
mov edx, dword [esp + 0x10]
push 0x41dcd4
push edx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x40b6e5
push str._da_ton_tai_nBan_co_muon_ghi_de_file_khong
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CString::CString_2
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov byte [esp + 0x86c], 9
call sub.MFC42u.DLL_operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x860], 0xb
call fcn.004117b8
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x28]
add esp, 4
mov ecx, esi
push 0x24
push 0
push eax
call sub.MFC42u.DLL_CWnd::MessageBoxW
cmp eax, 6
mov byte [esp + 0x860], 2
lea ecx, [esp + 0x24]
je 0x40b6e0
call fcn.004117b8
lea ecx, [esp + 0x20]
mov byte [esp + 0x860], 1
call fcn.004117b8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x860], 0
call fcn.004117b8
lea ecx, [esp + 0x10]
mov dword [esp + 0x860], 0xffffffff
call fcn.004117b8
or eax, 0xffffffff
jmp 0x40b94b
call fcn.004117b8
mov ecx, dword [esp + 0x10]
push 0
push 0
push 4
push 0
push 2
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
or edi, 0xffffffff
cmp ebx, edi
mov dword [esp + 0x14], ebx
je 0x40b748
mov edx, dword [esp + 0x1c]
push 1
lea eax, [esp + 0x34]
push edx
push eax
call fcn.004021f0
add esp, 0xc
test eax, eax
je 0x40b776
lea ecx, [esp + 0x30]
push ecx
call fcn.00403c30
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push str.Error_readding_file
mov ecx, esi
call sub.MFC42u.DLL_CWnd::MessageBoxW
lea ecx, [esp + 0x20]
mov byte [esp + 0x860], 1
call fcn.004117b8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x860], 0
call fcn.004117b8
mov dword [esp + 0x860], edi
jmp 0x40b93d
mov eax, dword [esp + 0x3c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0x7d00
jbe 0x40b79b
mov edx, dword [esi + 0x180]
shr eax, 0xe
push eax
push 0
push 0x406
push edx
call ebp
mov eax, dword [esp + 0x86c]
mov ecx, esi
push eax
push 0x3eb
call sub.MFC42u.DLL_CWnd::SetDlgItemTextW
mov ecx, dword [esi + 0x180]
push 0
push 0
push 0x402
push ecx
call ebp
mov eax, dword [esi + 0x6d0]
xor edi, edi
test eax, eax
je 0x40b882
mov ebx, 0x1ff
lea edx, [esp + 0x28]
lea eax, [esp + 0x30]
push edx
push 0x4000
push 0x534eec
push eax
call fcn.00403540
mov ecx, dword [esp + 0x38]
add esp, 0x10
test ecx, ecx
je 0x40b87e
test eax, eax
jne 0x40b8e8
lea edx, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x18]
push edx
push ecx
push 0x534eec
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x3c], 0x7d00
jbe 0x40b83f
mov ecx, dword [esi + 0x180]
inc edi
push 0
push edi
push 0x402
push ecx
add ebx, 0x4000
call ebp
mov edx, dword [esp + 0x86c]
mov eax, ebx
shr eax, 0xa
push edx
push eax
lea ecx, [esp + 0x28]
push 0x41dc6c
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x30]
add esp, 0x10
mov ecx, esi
push edx
push 0x3eb
call sub.MFC42u.DLL_CWnd::SetDlgItemTextW
mov eax, dword [esi + 0x6d0]
test eax, eax
jne 0x40b7d6
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push eax
call fcn.00403c30
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x6d0]
test eax, eax
jne 0x40b8ae
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll__wremove]
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x860], 1
call fcn.004117b8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x860], 0
call fcn.004117b8
lea ecx, [esp + 0x10]
mov dword [esp + 0x860], 0xffffffff
call fcn.004117b8
xor eax, eax
jmp 0x40b94b
lea edx, [esp + 0x30]
push edx
call fcn.00403c30
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push str.Error_readding_file
mov ecx, esi
call sub.MFC42u.DLL_CWnd::MessageBoxW
lea ecx, [esp + 0x20]
mov byte [esp + 0x860], 1
call fcn.004117b8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x860], 0
call fcn.004117b8
mov dword [esp + 0x860], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.004117b8
mov eax, 1
mov ecx, dword [esp + 0x858]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x854
ret 0xc