Function at 0x40766c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
mov esi, ecx
call fcn.00401876
mov esi, dword [esi + 4]
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x407a80
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x4076d2
inc eax
push eax
call fcn.0041cd9f
mov esi, eax
mov eax, dword [ebp - 0x14]
inc eax
push eax
push ebx
push esi
call fcn.0041cd10
add esp, 0x10
cmp esi, ebx
jne 0x4076de
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407a80
lea eax, [ebp - 0x14]
push ebx
push eax
push dword [ebp - 0x14]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push edi
jne 0x407705
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0041ccfb
pop ecx
jmp 0x407a80
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea ecx, [ebp - 0x44]
call fcn.00408259
push esi
call fcn.0041ccfb
cmp dword [ebp - 0x38], ebx
pop ecx
je 0x407a78
push dword [ebp - 0x38]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x407a78
mov eax, 0x422420
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], eax
mov esi, 0x12c
cmp word [0x4254a4], bx
mov ecx, 0x4254a4
mov eax, ecx
je 0x407771
inc eax
inc eax
cmp word [eax], bx
jne 0x40776a
sub eax, ecx
push ebx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x44]
call fcn.004053d8
cmp eax, dword [0x422428]
mov dword [ebp - 0x4c], eax
je 0x407a68
push eax
lea eax, [ebp - 0xbc]
push ebx
push eax
lea ecx, [ebp - 0x44]
call fcn.00408280
push eax
lea ecx, [ebp - 0x34]
call fcn.004021cc
lea ecx, [ebp - 0xbc]
call fcn.004016fd
cmp dword [ebp - 0x28], ebx
je 0x407a68
push dword [ebp - 0x28]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x407a68
push 0x60
call fcn.0041cd9f
cmp eax, ebx
pop ecx
je 0x4077e8
mov ecx, eax
call fcn.00407a87
mov edi, eax
mov dword [ebp - 8], edi
jmp 0x4077ed
mov dword [ebp - 8], ebx
mov edi, ebx
mov dword [ebp - 0xc], ebx
cmp word [0x42549c], bx
mov ecx, 0x42549c
mov eax, ecx
je 0x407807
inc eax
inc eax
cmp word [eax], bx
jne 0x407800
push dword [ebp - 4]
sub eax, ecx
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x34]
call fcn.004053d8
mov dword [ebp - 0x48], eax
sub eax, dword [ebp - 4]
lea ecx, [ebp - 0x34]
push eax
lea eax, [ebp - 0xcc]
push dword [ebp - 4]
push eax
call fcn.00408280
push eax
lea ecx, [ebp - 0x24]
call fcn.004021cc
lea ecx, [ebp - 0xcc]
call fcn.004016fd
cmp dword [ebp - 0x18], ebx
je 0x407a34
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x407a34
mov eax, dword [ebp - 0xc]
sub eax, ebx
je 0x407a05
dec eax
je 0x4079fc
dec eax
je 0x4079f3
dec eax
je 0x40788e
dec eax
jne 0x407a10
lea eax, [ebp - 0x24]
lea ecx, [edi + 0x50]
push eax
jmp 0x407a0b
lea eax, [ebp - 0x24]
lea ecx, [edi + 0x30]
push eax
call fcn.004021cc
xor eax, eax
lea edi, [ebp - 0x8a]
mov word [ebp - 0x8c], bx
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.0041cd10
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0041be5d
add esp, 0x14
mov edi, 0x422420
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x7c]
push esi
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x7c], esi
mov byte [ebp - 0x78], bl
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ebx
call fcn.004016d3
push eax
lea eax, [ebp - 0x8c]
push ebx
push eax
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
lea ecx, [ebp - 0x7c]
call fcn.0040665c
lea eax, [ebp - 0x5c]
push esi
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov byte [ebp - 0x98], bl
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], ebx
call fcn.004016d3
push eax
lea eax, [ebp - 0x8c]
push ebx
push eax
push 2
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea ecx, [ebp - 0x9c]
call fcn.0040665c
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 8]
lea ecx, [eax + 0x40]
call fcn.004021cc
push 0x425494
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xa0], eax
add ecx, 0x4c
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xac], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ecx
push eax
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
call edi
mov ecx, dword [ebp - 4]
push eax
push dword [ebp - 0x10]
call fcn.00405cf3
lea ecx, [ebp - 0xac]
call fcn.004016fd
mov eax, dword [ebp - 0x50]
push eax
mov dword [ebp - 0x10], eax
call edi
mov ecx, dword [ebp - 4]
push eax
push dword [ebp - 0x10]
call fcn.00405cf3
lea ecx, [ebp - 0x5c]
call fcn.004016fd
lea ecx, [ebp - 0x6c]
call fcn.004016fd
mov edi, dword [ebp - 8]
jmp 0x407a10
lea eax, [ebp - 0x24]
lea ecx, [edi + 0x20]
push eax
jmp 0x407a0b
lea eax, [ebp - 0x24]
lea ecx, [edi + 0x10]
push eax
jmp 0x407a0b
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.004021cc
mov eax, dword [0x422428]
mov ecx, dword [ebp - 0x48]
cmp ecx, eax
jne 0x407a21
mov dword [ebp - 4], eax
jmp 0x407a27
add ecx, 2
mov dword [ebp - 4], ecx
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 5
jl 0x4077f0
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x1000]
lea eax, [edx + 0x1000]
cmp ecx, 0x400
je 0x407a50
mov dword [edx + ecx*4], edi
inc dword [eax]
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x44]
add eax, 2
push eax
push ebx
call fcn.00401ec0
mov dword [ebp - 4], ebx
jmp 0x40775a
lea ecx, [ebp - 0x24]
call fcn.004016fd
lea ecx, [ebp - 0x34]
call fcn.004016fd
lea ecx, [ebp - 0x44]
call fcn.004016fd
pop edi
pop esi
pop ebx
leave
ret 4