Function at 0x4080d0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x54a7c0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0xb0]
test eax, eax
jne 0x40810d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
lea eax, [ebp + 0x244]
lea ecx, [esp + 0x14]
push eax
call fcn.0052fc5c
mov ecx, dword [ebp + 0x780]
push 0
push 0
push 0x1042
push ecx
mov dword [esp + 0x3c], 0
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp + 0x6c]
lea edi, [ebp + 0x6c]
mov esi, eax
mov eax, dword [edx - 8]
test eax, eax
je 0x40816f
push 0x596b48
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.0053017c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.005302ff
lea ecx, [esp + 0x18]
jmp 0x4081cc
cmp esi, 0xffffffff
je 0x4081d6
lea ebx, [ebp + 0x764]
push esi
mov ecx, ebx
call fcn.00529b7f
cmp eax, 1
jne 0x4081d6
push 0
lea ecx, [esp + 0x20]
push esi
push ecx
mov ecx, ebx
call fcn.00529a95
push 0x596b48
lea edx, [esp + 0x1c]
mov bl, 2
push eax
push edx
mov byte [esp + 0x38], bl
call fcn.0053017c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.005302ff
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], bl
call fcn.0052fee7
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0
call fcn.0052fee7
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40820c
push 0x596b48
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.0053017c
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 4
call fcn.005302ff
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 0
call fcn.0052fee7
mov edx, dword [ebp + 0xa8]
lea esi, [ebp + 0x70]
add edx, 8
mov ecx, esi
push edx
call fcn.00530020
push esi
lea ecx, [esp + 0x14]
call fcn.0052fc5c
mov ecx, dword [esp + 0x14]
mov eax, dword [ebp + 0x668]
push ecx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 5
call fcn.0052855f
lea edx, [esp + 0x10]
lea ecx, [ebp + 0x64]
push edx
call fcn.00530020
push 0
push 0x80
push 3
push 0
push 1
push OleUIAddVerbMenuA
push 0
mov ecx, esi
call fcn.00530317
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4082aa
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.0052fee7
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], edi
call fcn.0052fee7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
mov dword [ebp + 0x78], esi
mov dword [ebp + 0x7c], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
lea edi, [eax + 0xa]
push edi
push 0x40
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 4
mov eax, dword [esp + 0x24]
mov dword [ebx + 1], eax
mov dword [ebx + 5], esi
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x14]
inc eax
mov dword [esp + 0x20], eax
call fcn.00530317
mov esi, eax
mov eax, dword [esp + 0x1c]
mov ecx, eax
lea edi, [ebx + 9]
mov edx, ecx
mov eax, dword [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x654]
push ecx
mov ecx, dword [ebp + 0x658]
call fcn.0040f130
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edx, [esp + 0x1c]
lea ecx, [ebp + 0xa4]
push edx
call fcn.0040a810
lea ecx, [esp + 0x1c]
call fcn.0052fee7
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.0052fee7
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0052fee7
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret