Function at 0x40e390
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61911b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xb4
call fcn.004123b0
test eax, eax
je 0x40e3cd
xor eax, eax
jmp 0x40e6de
push 0
mov ecx, dword [ebp - 0x10]
call fcn.0040dc60
mov eax, dword [ebp - 0x10]
add eax, 0x300
push eax
lea ecx, [ebp - 0x14]
call fcn.005f76f1
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc58
call fcn.00412270
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x74
call fcn.00402c60
test eax, eax
jne 0x40e449
push 0x64f3b8
mov ecx, dword [ebp - 0x10]
add ecx, 0x74
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.005f7c11
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.005f7d94
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.005f797c
lea ecx, [ebp - 0x14]
call fcn.00402c60
test eax, eax
je 0x40e4c3
push 0x64dbb8
mov ecx, dword [ebp - 0x10]
add ecx, 0xb20
call fcn.005f7b05
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0xb4
call fcn.00412400
lea ecx, [ebp - 0x34]
call fcn.005f797c
push 1
mov ecx, dword [ebp - 0x10]
call fcn.0040dc60
push 0x30
push 0x64f454
push 0x64f494
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005f797c
mov eax, dword [ebp - 0x38]
jmp 0x40e6de
mov ecx, dword [ebp - 0x10]
add ecx, 0xb4
call fcn.004123e0
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
call fcn.005f7ab5
mov edx, dword [ebp - 0x10]
add edx, 0x80
push edx
lea ecx, [ebp - 0x24]
call fcn.005f76f1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402c90
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xb20
call fcn.00402c90
push eax
lea ecx, [ebp - 0x24]
call fcn.005ef502
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x6c
call fcn.005f7ab5
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x84
call fcn.005f7ab5
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x78], 0xffffffff
je 0x40e54a
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 1
push OleUIAddVerbMenuA
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
call fcn.005f7dac
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x78], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x78], 0xffffffff
jne 0x40e5ac
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.005f797c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005f797c
mov eax, dword [ebp - 0x3c]
jmp 0x40e6de
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov ecx, 0x20
call fcn.004818b0
mov ecx, dword [ebp - 0x20]
xor esi, esi
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x88], eax
mov dword [ecx + 0x8c], edx
lea ecx, [ebp - 0x24]
call fcn.00402c20
add eax, 0xa
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
push eax
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0047fea0
add esp, 0xc
mov edx, dword [ebp - 0x2c]
mov byte [edx], 4
push 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 1
push ecx
call fcn.0047ff00
add esp, 0xc
push 4
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x2c]
add eax, 5
push eax
call fcn.0047ff00
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00402c20
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.005f7dac
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 9
push ecx
call fcn.0047ff00
add esp, 0xc
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xb0c]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xb10]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xb10]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xb4
call fcn.00412400
lea ecx, [ebp - 0x40]
call fcn.005f797c
mov dword [ebp - 0x44], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.005f797c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005f797c
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret