Function at 0x403600
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
push edi
xor eax, eax
push eax
push 0x80
push 4
push eax
push 1
lea edi, [esi + 0x1c]
push bind
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0xffffffff
jne 0x40365f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.CreateFile__ws_fail__d_n
call fcn.00404c20
add esp, 0xc
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
cmp eax, 0x2c
jae 0x403685
push eax
push edi
push str.FileSize__ws___d_n
call fcn.00404c20
add esp, 0xc
jmp 0x40383b
push 0
lea eax, [esp + 0x10]
push eax
push 0x2c
lea edi, [esi + 0x22c]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 8], eax
test eax, eax
je 0x403827
cmp dword [esp + 0xc], 0x2c
jne 0x403827
mov ecx, esi
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4036d7
test dl, dl
je 0x4036d3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4036d7
add eax, 2
add ecx, 2
test dl, dl
jne 0x4036b7
xor eax, eax
jmp 0x4036dc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4036fa
push str.Chu_ki_k_dung_n
call fcn.00404c20
add esp, 4
mov dword [esp + 0x10], 1
jmp 0x40383b
mov ecx, dword [esi + 0x23c]
cmp ecx, dword [esi + 0x10]
jne 0x403810
cmp dword [esi + 0x240], 0x2c
jne 0x403810
mov ecx, dword [esi + 0x14]
cmp dword [esi + 0x244], ecx
jne 0x403810
mov edi, dword [esp + 0x18]
add edi, 0xffffffd4
xor edx, edx
mov eax, edi
div ecx
cmp dword [esi + 0x248], eax
je 0x403754
push str.So_luong_entry_k_dung__n
call fcn.00404c20
mov eax, edi
xor edx, edx
add esp, 4
div dword [esi + 0x14]
mov dword [esi + 0x248], eax
cmp dword [esi + 0x228], 0
jne 0x40376a
mov dword [esp + 8], 1
jmp 0x40383b
cmp dword [esi + 0x248], 0
mov dword [esp + 8], 0
jle 0x403806
nop
mov edx, dword [esi + 0x14]
push edx
call fcn.0043e793
mov edi, eax
add esp, 4
test edi, edi
je 0x403806
mov ecx, dword [esi + 0x14]
push 0
lea eax, [esp + 0x10]
push eax
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4037e4
mov edx, dword [esp + 0xc]
cmp edx, dword [esi + 0x14]
jne 0x4037e4
mov dword [esp + 0x18], edi
lea edi, [esi + 0x258]
lea ebx, [esp + 0x18]
call fcn.00403e10
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0x14]
inc eax
cmp eax, dword [esi + 0x248]
mov dword [esp + 8], eax
jl 0x403780
mov dword [esp + 8], 1
jmp 0x40383b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_Entry_fail__d_n
call fcn.00404c20
push edi
call fcn.0043e85d
add esp, 0xc
mov dword [esp + 0x10], 1
mov dword [esp + 8], 1
jmp 0x40383b
push str.Version_k_dung_n
call fcn.00404c20
add esp, 4
mov dword [esp + 0x10], 1
jmp 0x40383b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ReadFile_fail__d_n
call fcn.00404c20
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0
je 0x40385c
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret