Function at 0x40b970
Capabilities:
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x417f59
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x884
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x89c], 0
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x8a4]
lea ecx, [esp + 0x18]
push eax
mov byte [esp + 0x8a0], 1
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x20]
mov byte [esp + 0x89c], 2
call sub.MFC42u.DLL_CString::CString
push 0x5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x8a0], 3
call sub.MFC42u.DLL_CString::ReverseFind
test eax, eax
je 0x40ba24
inc eax
lea ecx, [esp + 0x24]
push eax
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x8a0], 4
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x89c], 3
call fcn.004117b8
jmp 0x40ba32
lea edx, [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42u.DLL_CString::operator_2
push 0x41d9cc
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::CString_2
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x4b4]
lea esi, [ebp + 0x4b4]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
setne bl
call fcn.004117b8
test bl, bl
je 0x40baf1
push 0x41d9cc
lea ecx, [esp + 0x20]
call sub.MFC42u.DLL_CString::CString_2
lea edx, [esp + 0x1c]
lea eax, [esp + 0x2c]
push edx
push esi
push eax
mov byte [esp + 0x8a8], 5
call sub.MFC42u.DLL_operator
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
mov bl, 6
push eax
push edx
mov byte [esp + 0x8a8], bl
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x8a0], 7
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x24]
mov byte [esp + 0x89c], bl
call fcn.004117b8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x89c], 5
call fcn.004117b8
mov byte [esp + 0x89c], 3
lea ecx, [esp + 0x1c]
jmp 0x40bb1f
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push esi
push ecx
call sub.MFC42u.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x8a0], 8
call sub.MFC42u.DLL_CString::operator_2
mov byte [esp + 0x89c], 3
lea ecx, [esp + 0x24]
call fcn.004117b8
mov edx, dword [esp + 0x18]
push 0
push 0x40000000
push 3
push 0
push 1
push 0x80000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bc52
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x7d00
mov dword [esp + 0x2c], edi
jbe 0x40bb7e
mov ecx, dword [ebp + 0x180]
xor ebx, ebx
shr eax, 0xe
push eax
push ebx
push 0x406
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40bb80
xor ebx, ebx
mov edx, dword [ebp + 0x180]
push ebx
push ebx
push 0x402
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x70]
push eax
push ecx
call fcn.004021f0
add esp, 0xc
cmp eax, ebx
jne 0x40bc3a
push str._da_co_nBan_co_muon_ghi_de_khong
lea ecx, [esp + 0x3c]
call sub.MFC42u.DLL_CString::CString_2
lea edx, [esp + 0x38]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x8a8], 9
call sub.MFC42u.DLL_operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x89c], 0xb
call fcn.004117b8
mov edx, dword [esp + 0x1c]
push 0x24
push ebx
push edx
mov ecx, ebp
call sub.MFC42u.DLL_CWnd::MessageBoxW
cmp eax, 7
jne 0x40bc12
lea ecx, [esp + 0x1c]
mov byte [esp + 0x89c], 3
call fcn.004117b8
jmp 0x40bc52
lea eax, [esp + 0x6c]
push eax
call fcn.00403c30
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00404150
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x89c], 3
call fcn.004117b8
mov edx, dword [esp + 0x10]
push 0xa
lea eax, [esp + 0x70]
push edx
push eax
call fcn.004021f0
add esp, 0xc
cmp eax, ebx
je 0x40bca3
lea ecx, [esp + 0x20]
mov byte [esp + 0x89c], 2
call fcn.004117b8
lea ecx, [esp + 0x18]
mov byte [esp + 0x89c], 1
call fcn.004117b8
lea ecx, [esp + 0x14]
mov byte [esp + 0x89c], 0
call fcn.004117b8
lea ecx, [esp + 0x10]
mov dword [esp + 0x89c], 0xffffffff
call fcn.004117b8
mov eax, 1
jmp 0x40bed9
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x40], ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x48], ecx
push eax
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x60], edx
push ecx
push 0x4000
mov dword [esp + 0x6c], edx
push 0x534eec
push esi
mov dword [esp + 0x78], edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x28]
push 1
lea eax, [esp + 0x40]
push edx
push eax
push esi
mov dword [esp + 0x44], 0x4000
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
lea eax, [edi + 0x3fff]
shr eax, 0xe
mov dword [esp + 0x68], eax
je 0x40be7c
mov dword [esp + 0x24], 0x1ff
jmp 0x40bd3a
mov edi, dword [esp + 0x2c]
mov eax, dword [ebp + 0x6d0]
test eax, eax
je 0x40bef4
mov eax, dword [esp + 0x30]
test eax, eax
mov eax, dword [esp + 0x34]
jne 0x40bd85
cmp eax, edi
mov dword [esp + 0x5c], eax
ja 0x40bd77
lea ecx, [esp + 0x54]
lea edx, [esp + 0x28]
push ecx
push edx
push 0x4000
push 0x530e90
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x28]
push 1
lea ecx, [esp + 0x40]
push eax
push ecx
jmp 0x40bdb4
cmp eax, edi
mov dword [esp + 0x44], eax
ja 0x40bda8
lea edx, [esp + 0x3c]
lea eax, [esp + 0x28]
push edx
push eax
push 0x4000
push 0x534eec
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x28]
push 1
lea edx, [esp + 0x58]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
add edx, 0x4000
test eax, eax
mov dword [esp + 0x34], edx
jbe 0x40be7c
mov ecx, dword [esp + 0x30]
test ecx, ecx
lea ecx, [esp + 0x50]
push ecx
push eax
jne 0x40bdea
push 0x534eec
jmp 0x40bdef
push 0x530e90
lea edx, [esp + 0x78]
push edx
call fcn.00403830
mov ecx, dword [esp + 0x40]
mov edi, eax
add esp, 0x10
xor eax, eax
test ecx, ecx
sete al
test edi, edi
mov dword [esp + 0x30], eax
jne 0x40bf10
cmp dword [esp + 0x2c], 0x7d00
jbe 0x40be33
mov ecx, dword [ebp + 0x180]
push edi
push ebx
push 0x402
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, edi
push edx
shr eax, 0xa
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, ebp
push edx
push 0x3eb
call sub.MFC42u.DLL_CWnd::SetDlgItemTextW
mov eax, dword [esp + 0x68]
inc ebx
add edi, 0x4000
cmp ebx, eax
mov dword [esp + 0x24], edi
jb 0x40bd36
lea eax, [esp + 0x6c]
push eax
call fcn.00403c30
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov byte [esp + 0x89c], 2
call fcn.004117b8
lea ecx, [esp + 0x18]
mov byte [esp + 0x89c], 1
call fcn.004117b8
lea ecx, [esp + 0x14]
mov byte [esp + 0x89c], 0
call fcn.004117b8
lea ecx, [esp + 0x10]
mov dword [esp + 0x89c], 0xffffffff
call fcn.004117b8
xor eax, eax
mov ecx, dword [esp + 0x894]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x890
ret 4
lea eax, [esp + 0x6c]
push eax
call fcn.00403c30
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00404150
add esp, 8
jmp 0x40be7c
cmp edi, 0x13
jne 0x40bf94
lea edx, [esp + 0x6c]
push edx
call fcn.00403c30
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
push eax
call fcn.00404150
add esp, 4
mov ecx, ebp
push 0
push 0
push str.Disk_Full
call sub.MFC42u.DLL_CWnd::MessageBoxW
lea ecx, [esp + 0x20]
mov byte [esp + 0x89c], 2
call fcn.004117b8
lea ecx, [esp + 0x18]
mov byte [esp + 0x89c], 1
call fcn.004117b8
lea ecx, [esp + 0x14]
mov byte [esp + 0x89c], 0
call fcn.004117b8
lea ecx, [esp + 0x10]
mov dword [esp + 0x89c], 0xffffffff
call fcn.004117b8
mov eax, edi
jmp 0x40bed9
lea ecx, [esp + 0x6c]
push ecx
call fcn.00403c30
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x4b4]
mov ecx, ebp
push eax
call fcn.0040a350
mov edx, dword [esp + 0x10]
push edx
call fcn.00404150
add esp, 4
mov ecx, ebp
push 0
push 0
push 0x41dcd8
call sub.MFC42u.DLL_CWnd::MessageBoxW
lea ecx, [esp + 0x20]
mov byte [esp + 0x89c], 2
call fcn.004117b8
lea ecx, [esp + 0x18]
mov byte [esp + 0x89c], 1
call fcn.004117b8
lea ecx, [esp + 0x14]
mov byte [esp + 0x89c], 0
call fcn.004117b8
lea ecx, [esp + 0x10]
mov dword [esp + 0x89c], 0xffffffff
call fcn.004117b8
mov eax, edi
jmp 0x40bed9