Function at 0x40d740
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59338d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.00417050
test eax, eax
je 0x40d77d
xor eax, eax
jmp 0x40da40
mov eax, dword [ebp - 0x10]
add eax, 0x244
push eax
lea ecx, [ebp - 0x14]
call fcn.00577025
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x764
call fcn.00410df0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x40d82b
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x764
call fcn.00570c71
cmp eax, 1
jne 0x40d82b
push 0x5a825c
push 0
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x764
call fcn.00570bcc
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x50]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.00577545
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x58]
push edx
lea ecx, [ebp - 0x14]
call fcn.005776c8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.005772b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.005772b0
mov ecx, dword [ebp - 0x10]
add ecx, 0x6c
call fcn.00406c50
test eax, eax
jne 0x40d874
push 0x5a825c
mov eax, dword [ebp - 0x10]
add eax, 0x6c
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00577545
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x60]
push eax
lea ecx, [ebp - 0x14]
call fcn.005776c8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.005772b0
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.00410f10
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call fcn.005773e9
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
push ecx
lea ecx, [ebp - 0x28]
call fcn.00577025
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00401bd0
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x668
call fcn.00401bd0
push eax
lea ecx, [ebp - 0x28]
call fcn.0056f71f
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call fcn.005773e9
push 0
push 0x80
push 3
push 0
push 1
push OleUIAddVerbMenuA
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call fcn.005776e0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x40d929
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.005772b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005772b0
mov eax, dword [ebp - 0x40]
jmp 0x40da40
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x78], edx
mov dword [ecx + 0x7c], eax
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.004027f0
add eax, 0xa
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
mov edx, dword [ebp - 0x30]
push edx
call fcn.00450460
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov byte [eax], 4
push 4
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x30]
add edx, 1
push edx
call fcn.00450890
add esp, 0xc
push 4
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 5
push ecx
call fcn.00450890
add esp, 0xc
lea ecx, [ebp - 0x28]
call fcn.004027f0
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x28]
call fcn.005776e0
push eax
mov edx, dword [ebp - 0x30]
add edx, 9
push edx
call fcn.00450890
add esp, 0xc
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x654]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x658]
call fcn.00416100
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.00410f30
lea ecx, [ebp - 0x44]
call fcn.005772b0
mov dword [ebp - 0x48], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.005772b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.005772b0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret