Function at 0x418923
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x465c14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea edi, [ebp - 0x24]
xor ecx, ecx
stosd dword es:[edi], eax
or esi, 0xffffffff
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x44], ecx
stosd dword es:[edi], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], ecx
stosd dword es:[edi], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebx]
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
push 4
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
cmp ecx, 0x5cd000e
jne 0x418a7c
cmp dword [ebx + 8], 1
jne 0x418a7c
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebx + 0xc]
push eax
push 1
push dword [ebp + 0x10]
push ebx
call fcn.0040dda1
add esp, 0x18
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x418a60
cmp dword [ebp - 0x50], eax
jle 0x418a60
push eax
push 0x80
push 3
push eax
push 3
push 0x80000000
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
je 0x418a3a
push 0
push edi
mov dword [ebp - 0x54], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x34]
xor edx, edx
push 0x64
pop ecx
div ecx
push edi
mov byte [ebp - 0x40], al
mov al, byte [ebp - 0x32]
mov byte [ebp - 0x3e], al
mov al, byte [ebp - 0x2e]
mov byte [ebp - 0x3d], al
mov al, byte [ebp - 0x2c]
mov byte [ebp - 0x3c], al
mov al, byte [ebp - 0x2a]
mov byte [ebp - 0x3b], al
mov al, byte [ebp - 0x28]
mov byte [ebp - 0x3f], dl
mov byte [ebp - 0x3a], al
mov byte [ebp - 0x39], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x54]
mov dword [ebp - 8], 8
mov dword [ebp - 0x20], eax
xor esi, esi
lea eax, [ebp - 0x58]
push 4
pop edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], eax
jmp 0x418a67
mov dword [ebp - 0x38], 0x7d0
lea eax, [ebp - 0x48]
push eax
push dword [ebx + 8]
call fcn.0040de82
mov eax, dword [ebp - 0x38]
pop ecx
pop ecx
mov ecx, dword [ebx]
jmp 0x418a84
mov eax, 0x7d0
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x38]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x4c]
push edx
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x24]
push edx
push edi
push dword [ebx + 4]
push eax
push ecx
call fcn.0040dc9b
add esp, 0x20
mov dword [ebp - 0x38], eax
test eax, eax
mov eax, dword [ebp - 0x44]
jne 0x418ae0
test eax, eax
jne 0x418abe
cmp dword [ebp - 0x4c], eax
jg 0x418ae0
push 3
push dword [ebp - 0x4c]
push eax
push dword [ebp + 8]
call fcn.0040d558
add esp, 0x10
mov dword [ebp - 0x38], eax
test eax, eax
mov eax, dword [ebp - 0x44]
je 0x418ae5
mov esi, 0x7d3
jmp 0x418ae5
mov esi, 0x7d2
test eax, eax
je 0x418af0
push eax
call fcn.0042a45a
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042345f
leave
ret