Function at 0x40aff9
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x42900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ecx + 0x14]
push esi
push edi
mov edx, eax
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x20]
call fcn.0041147b
push dword [ebp - 0x20]
xor ebx, ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.004092a3
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040b73e
push 0x407670
lea ecx, [ebp - 0x1c]
call fcn.004092a3
push ecx
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x38]
call fcn.004112e0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov eax, dword [ebp - 0x30]
mov esi, ebx
mov ecx, dword [ebp - 0x34]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x40b0ca
lea eax, [ecx + esi*4]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x18]
call fcn.004113da
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x20]
pop ecx
lea ecx, [ebp - 0x1c]
lea eax, [eax + esi*4]
push eax
call fcn.004113da
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
call fcn.0040f0dd
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov eax, dword [ebp - 0x30]
inc esi
mov ecx, dword [ebp - 0x34]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x40b076
mov edi, 0x406f5c
lea ecx, [ebp - 0x18]
push edi
call fcn.004092a3
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x48]
call fcn.004113da
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov ecx, dword [ebp - 0x48]
call fcn.0040f033
test al, al
je 0x40b155
push edi
lea ecx, [ebp - 0x18]
call fcn.004092a3
lea eax, [ebp - 0x18]
push 0x407680
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.004113da
pop ecx
mov edx, eax
lea ecx, [ebp - 0x24]
call fcn.0040b7df
pop ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00408a15
mov esi, dword [ebp - 0x24]
mov edx, esi
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.0040f0dd
pop ecx
lea ecx, [esi - 0x10]
call fcn.00408a15
push edi
lea ecx, [ebp - 0x18]
call fcn.004092a3
lea eax, [ebp - 0x18]
push 0x4075f8
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x24]
call fcn.004113da
pop ecx
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.0040b7df
pop ecx
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.0040f033
test al, al
je 0x40b1a9
mov ecx, esi
call fcn.0041058f
push 0x407670
lea ecx, [ebp - 0x18]
call fcn.004092a3
push ecx
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x20]
call fcn.004112e0
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov edx, dword [ebp - 0x30]
mov eax, edx
mov ecx, dword [ebp - 0x34]
sub eax, ecx
mov byte [ebp - 0x24], bl
push dword [ebp - 0x24]
sar eax, 2
push eax
call fcn.0040bc61
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x34]
sub eax, ecx
sar eax, 2
cmp eax, 9
jbe 0x40b23a
mov edi, ebx
add eax, 0xfffffff7
je 0x40b23a
lea eax, [ecx + edi*4]
push eax
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x24]
call fcn.004113da
pop ecx
mov ecx, dword [eax]
call fcn.0041058f
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov eax, dword [ebp - 0x30]
inc edi
mov ecx, dword [ebp - 0x34]
sub eax, ecx
sar eax, 2
sub eax, 9
cmp edi, eax
jb 0x40b205
or ebx, 0xffffffff
mov dword [ebp - 0x50], 0x40c2d0
or dword [ebp - 0x4c], ebx
lea ecx, [ebp - 0x44]
or dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], 0x40c2ee
call fcn.00409302
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
movzx eax, word [ebp - 0xe]
push eax
movzx eax, word [ebp - 0x12]
push eax
movzx eax, word [ebp - 0x14]
push eax
lea eax, [ebp - 0x44]
push 0x407690
push eax
call fcn.0041160f
add esp, 0x1c
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0x54]
push eax
call fcn.004113da
mov eax, dword [ebp - 0x28]
pop ecx
lea ecx, [ebp - 0x28]
push dword [eax]
call fcn.0040b912
push 0
lea ecx, [ebp - 0x4c]
mov edx, dword [eax]
call fcn.0040c220
pop ecx
mov ecx, dword [ebp - 0x28]
mov edi, eax
add ecx, 0xfffffff0
call fcn.00408a15
test edi, edi
jne 0x40b379
push dword [ebp - 0x54]
lea ecx, [ebp - 0x28]
call fcn.0040b912
push 1
lea ecx, [ebp - 0x3c]
mov edx, dword [eax]
call fcn.0040c220
pop ecx
mov ecx, dword [ebp - 0x28]
mov edi, eax
add ecx, 0xfffffff0
call fcn.00408a15
test edi, edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x40b35e
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40b326
call edi
test eax, eax
je 0x40b326
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
jmp 0x40b330
mov eax, dword [ebp - 0x28]
xor ecx, ecx
add ecx, ebx
adc eax, 0
push ecx
push eax
push ecx
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x40]
call fcn.0040af08
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x40b35e
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40b35a
call edi
jmp 0x40b35e
or dword [ebp - 0x3c], 0xffffffff
cmp dword [ebp - 0x4c], 0xffffffff
je 0x40b379
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40b375
call edi
jmp 0x40b379
or dword [ebp - 0x4c], 0xffffffff
mov ecx, dword [ebp - 0x54]
test ebx, ebx
sete bl
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov ecx, dword [ebp - 0x44]
lea ecx, [ecx - 0x10]
call fcn.00408a15
lea ecx, [esi - 0x10]
call fcn.00408a15
mov ecx, dword [ebp - 0x48]
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.00408a15
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x40b3ee
mov edi, dword [ebp - 0x30]
cmp esi, edi
je 0x40b3d4
mov ecx, dword [esi]
sub ecx, 0x10
call fcn.00408a15
add esi, 4
cmp esi, edi
jne 0x40b3c0
mov esi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
mov ecx, esi
sub edx, esi
and edx, 0xfffffffc
call fcn.0040bc35
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00408a15
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004148a7
leave
ret