Function at 0x102e677
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 0x102e6b7
test byte [eax + 0x1c], 4
je 0x102e6b7
cmp byte [eax + 0x19], 5
jb 0x102e6b7
mov edi, 0x10022b4
push edi
push 0x98
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x102e6bc
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 SysReAllocString
push dword [eax + 0x34]
call fcn.0105e5e0
mov esi, eax
cmp esi, 0xffffffff
je 0x102e738
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x102e731
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102e72d
test byte [eax + 0x1c], 4
je 0x102e72d
cmp byte [eax + 0x19], 2
jb 0x102e72d
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.0102ca9d
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 0x102e788
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102e77f
test byte [eax + 0x1c], 4
je 0x102e77f
cmp byte [eax + 0x19], 2
jb 0x102e77f
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.0102ca9d
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.0106e035
test eax, eax
je 0x102e894
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102e894
test byte [eax + 0x1c], 4
je 0x102e894
cmp byte [eax + 0x19], 2
jb 0x102e894
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.0102ca9d
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.0106dd2e
test eax, eax
je 0x102e8eb
mov eax, dword [0x1075004]
cmp eax, 0x1075004
je 0x102e8eb
test byte [eax + 0x1c], 4
je 0x102e8eb
cmp byte [eax + 0x19], 2
jb 0x102e8eb
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.0102ca9d
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 4