Function at 0x40bb30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0x70], 0
push 0x14
call fcn.004083f0
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0x100000
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x3c], 0x80
mov dword [ebp - 0x34], 0x20
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [str.dosdevices_]
mov dword [ebp - 0x54], eax
mov ecx, dword [0x40e954]
mov dword [ebp - 0x50], ecx
mov edx, dword [0x40e958]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp + 0x10]
push eax
push 0
call fcn.004060c0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0xc], 0
jne 0x40bc2e
mov ecx, dword [ebp - 0x10]
add ecx, 0xd
mov dword [ebp - 0x18], ecx
push 1
mov edx, dword [ebp - 0x18]
push edx
call fcn.00407d80
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
mov edx, dword [ebp - 0x50]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x4c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, 1
imul edx, ecx, 0xc
add edx, dword [ebp - 8]
push edx
call fcn.00407cf0
add esp, 0xc
push 0
mov eax, dword [ebp - 8]
push eax
push 1
lea ecx, [ebp - 0x7c]
push ecx
call fcn.00405a80
add esp, 0x10
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x68], 0
jmp 0x40bc8c
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x18], eax
push 1
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00407d80
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00407cf0
add esp, 0xc
push 0
mov edx, dword [ebp + 0x10]
push edx
push 1
lea eax, [ebp - 0x88]
push eax
call fcn.00405a80
add esp, 0x10
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x24]
shl eax, 1
mov word [ebp - 0x48], ax
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + ecx + 2]
mov word [ebp - 0x46], dx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x6c], 0x18
mov dword [ebp - 0x60], 0xc0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov edx, dword [ebp + 8]
and edx, 1
je 0x40bcdb
mov eax, dword [ebp - 0xc]
or eax, 0x80000000
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
and ecx, 2
je 0x40bcef
mov edx, dword [ebp - 0xc]
or edx, 0x40000000
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
and eax, 4
je 0x40bd00
mov ecx, dword [ebp - 0x1c]
or ecx, 2
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0xffffffff
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0xc
push ecx
lea edx, [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [0x4a1588]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
sub esp, 0xc
mov eax, esp
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov edx, dword [ebp - 0x24]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 8], ecx
call fcn.00405d00
add esp, 0xc
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x40bd71
jmp 0x40be03
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 0x3ffffff8
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0x3b
ja case.0x40bd96.1
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x40be70]
jmp dword [ecx*4 + 0x40be58]
push str.invalid_handle_n
push 0x40e970
call fcn.00406f20
add esp, 8
jmp 0x40be27
push str.invalid_parameter_n
push 0x40e994
call fcn.00406f20
add esp, 8
jmp 0x40be27
push str.share_access_flags_incompatible__already_opened___n
push 0x40e9d8
call fcn.00406f20
add esp, 8
jmp 0x40be27
push str.object_name_not_found_n
push 0x40ea00
call fcn.00406f20
add esp, 8
jmp 0x40be27
push str.object_name_invalid_n
push str.NtCreateFile
call fcn.00406f20
add esp, 8
jmp 0x40be27
jmp 0x40be27
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call sub.KERNEL32.dll_GetFileSize
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 8]
push edx
call fcn.00407ef0
add esp, 4
mov eax, dword [ebp - 4]
jmp 0x40be51
push str.unhandled_error
push str.file_open__
call fcn.00406f20
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [0x4a157c]
mov edx, dword [ebp - 4]
mov dword [edx], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret