Function at 0x102e26b
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102e2ab
test byte [eax + 0x1c], 4
je 0x102e2ab
cmp byte [eax + 0x19], 5
jb 0x102e2ab
mov edi, 0x10022b4
push edi
push 0x98
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x102e2b0
mov edi, 0x10022b4
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x20]
mov eax, dword [ebx + 0x440]
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push dword [eax + 0x34]
call fcn.0105e220
mov esi, eax
cmp esi, 0xffffffff
je 0x102e32c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x102e325
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102e321
test byte [eax + 0x1c], 4
je 0x102e321
cmp byte [eax + 0x19], 2
jb 0x102e321
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push edi
push 0x99
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
and dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x102e37c
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102e373
test byte [eax + 0x1c], 4
je 0x102e373
cmp byte [eax + 0x19], 2
jb 0x102e373
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push edi
push 0x9a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
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
movzx esi, word [ebp - 0xc]
movzx eax, word [ebp - 0xa]
imul esi, esi, 0x3c
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
add esi, eax
movzx eax, word [ebp - 8]
imul esi, esi, 0x3c
add esi, eax
mov eax, dword [0x1077fc8]
add eax, 0x18
push eax
call edi
mov eax, dword [0x1077fc8]
add eax, 0x30
push eax
call edi
mov eax, dword [0x1077fc8]
lea edi, [ebx + 0x468]
push dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
add eax, 0x1c
push eax
call ebx
mov eax, dword [0x1077fc8]
push dword [edi]
add eax, 0x34
push eax
call ebx
mov edi, 0x1078010
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x1077fd4], esi
mov eax, dword [0x1077fd4]
push 0x3c
pop ecx
xor edx, edx
div ecx
mov ecx, dword [0x1077fc8]
add dword [0x1077fcc], esi
push 0x3c
xor edx, edx
mov dword [ecx + 0x20], eax
mov eax, dword [0x1077fcc]
pop ecx
div ecx
mov ecx, dword [0x1077fc8]
mov dword [ecx + 0x38], eax
mov eax, dword [0x1077fc8]
mov ecx, dword [ebp - 4]
add dword [eax + 0x14], ecx
mov eax, dword [0x1077fc8]
add dword [eax + 0x2c], ecx
mov eax, dword [0x1077fc8]
lea ecx, [eax + 0x1c]
push ecx
lea ecx, [eax + 0x20]
push ecx
lea ecx, [eax + 0x18]
push ecx
lea ecx, [eax + 0x14]
push ecx
lea ecx, [eax + 0x28]
push ecx
add eax, 0x24
push eax
call fcn.0106de30
test eax, eax
je 0x102e488
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102e488
test byte [eax + 0x1c], 4
je 0x102e488
cmp byte [eax + 0x19], 2
jb 0x102e488
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push 0x10022b4
push 0x9b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, dword [0x1077fc8]
lea ecx, [eax + 0x34]
push ecx
lea ecx, [eax + 0x38]
push ecx
lea ecx, [eax + 0x30]
push ecx
add eax, 0x2c
push eax
call fcn.0106db29
test eax, eax
je 0x102e4df
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102e4df
test byte [eax + 0x1c], 4
je 0x102e4df
cmp byte [eax + 0x19], 2
jb 0x102e4df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push 0x10022b4
push 0x9c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4