Function at 0x4013b6
Capabilities:
Get file size

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebp, esp
sub esp, 0x238
mov dword [ebp - 0x230], 0
push 0x4215af
call sub.KERNEL32.dll_GetModuleHandleA
mov edi, eax
test eax, eax
je 0x401652
push 0x4215b9
push edi
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x401652
mov dword [ebp - 0x228], eax
push 0x4215d0
push edi
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x401652
mov dword [ebp - 0x22c], eax
push 0
push 0x2000000
push 3
push 0
push 3
push 0x80000000
push dword [ebp + 0x1c]
call sub.KERNEL32.dll_CreateFileA
mov dword [ebp - 0x1c], eax
test eax, eax
jns 0x40143e
xor eax, eax
mov esp, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov dword [ebp - 8], 0x4000
push 4
push 0x1000
push dword [ebp - 8]
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0x80000005
cmp dword [ebp - 0x18], 0x80000005
jne 0x4014bf
push 0x16
push dword [ebp - 8]
push dword [ebp - 4]
push 0x41ada0
push dword [ebp - 0x1c]
call dword [ebp - 0x228]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4014fe
cmp dword [ebp - 0x18], 0x80000005
jne 0x4014bf
push 0x8000
push 0
push dword [ebp - 4]
call sub.KERNEL32.dll_VirtualFree
add dword [ebp - 8], 0x4000
push 4
push 0x1000
push dword [ebp - 8]
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 4], eax
jmp 0x401460
cmp dword [ebp + 0x14], 0
je 0x4014f0
push 0
push 0
push 0x4215e6
push 0
call sub.USER32.dll_MessageBoxA
push 0
push 0
push 0x10
push dword [ebp + 0x14]
call sub.USER32.dll_PostMessageA
push eax
call dword [ebp - 0x22c]
push eax
call sub.KERNEL32.dll_SetLastError
mov eax, 0
mov esp, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
xor edi, edi
xor esi, esi
cmp dword [ebp - 0x18], 0
jne 0x40163b
cmp dword [0x41ada4], 0x7fffffff
jg 0x40163b
mov eax, dword [ebp - 4]
add edi, eax
add eax, dword [ebp - 8]
cmp edi, eax
ja 0x40163b
push 0x208
push ebp
add dword [esp], 0xfffffddc
call sub.KERNEL32.dll_RtlZeroMemory
mov ecx, dword [edi + 4]
cmp ecx, 0x208
ja 0x40163b
mov eax, edi
add eax, 0x18
push 0
push 0
push 0x104
push ebp
add dword [esp], 0xfffffddc
push 0xffffffffffffffff
push eax
push 0
push 0
call sub.KERNEL32.dll_WideCharToMultiByte
cmp dword [ebp + 0x18], 0
je 0x401625
push dword [ebp + 0x1c]
push 0x41e368
call fcn.00401bb4
push ebp
add dword [esp], 0xfffffddc
push 0x41e368
call fcn.00401b87
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push 0x41e368
call sub.KERNEL32.dll_CreateFileA
mov dword [ebp - 0xc], eax
push ebp
add dword [esp], 0xffffffec
push eax
call sub.KERNEL32.dll_GetFileSize
mov dword [ebp - 0x10], eax
push 0
push ebp
add dword [esp], 0xfffffdc8
push 4
push ebp
add dword [esp], 0xfffffdcc
push 0
push 0
push 0x9003c
push dword [ebp - 0xc]
call sub.KERNEL32.dll_DeviceIoControl
test eax, eax
jne 0x4015f5
mov dword [ebp - 0x234], 0
and dword [ebp - 0x234], 0xffff
push dword [ebp - 0xc]
call sub.KERNEL32.dll_CloseHandle
push dword [ebp - 0x234]
push 0x41e368
push dword [ebp - 0x10]
push ebp
add dword [esp], 0xfffffddc
push dword [ebp + 0x18]
call fcn.0040175a
mov eax, dword [edi]
mov edi, eax
add edi, esi
mov esi, edi
inc dword [ebp - 0x230]
test eax, eax
jne 0x40151c
push 0x8000
push 0
push dword [ebp - 4]
call sub.KERNEL32.dll_VirtualFree
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x230]
mov esp, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 0xc