Function at 0x10095930
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e0120
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x102632d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x50], esi
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10095986
mov eax, dword [eax]
test eax, eax
je 0x10095986
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 4], 0
cmp dword [ecx + 0x10], 0
je 0x10095c71
mov eax, dword [esi + 0x18]
cmp dword [eax], 0
je 0x10095c71
xorps xmm0, xmm0
xor edi, edi
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 2
cmp dword [ecx + 0x14], 8
jb 0x100959c3
mov ecx, dword [ecx]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
jne 0x100959f6
call fcn.1004abe0
test eax, eax
js 0x10095c5f
jmp 0x100959fb
mov edi, eax
mov dword [ebp - 0x1c], edi
xorps xmm0, xmm0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
jne 0x10095a47
call fcn.1004abe0
jmp 0x10095a8c
mov eax, dword [ebp - 0x44]
xorps xmm0, xmm0
push 0
push eax
push 0
push 0
push 4
mov dword [ebp - 0x38], eax
push esi
mov dword [ebp - 0x24], 4
movlpd qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [ebp - 0x3c], eax
test eax, eax
jne 0x10095a94
call fcn.1004abe0
push esi
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
test eax, eax
js 0x10095c0e
mov esi, dword [ebp - 0x50]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test al, al
je 0x10095c0e
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x50], eax
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
call edx
xorps xmm0, xmm0
mov dword [ebp - 0x48], eax
movlpd qword [ebp - 0x44], xmm0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 5
mov ecx, dword [esi + 0x18]
push 0
mov ecx, dword [ecx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
push eax
lea ecx, [ebp - 0x44]
call fcn.10051050
cmp dword [ebp - 0x50], 0
jbe 0x10095be3
cmp dword [ebp - 0x48], 0
jbe 0x10095be3
cmp dword [ebp - 0x44], 0
je 0x10095be3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [ebp - 0x50]
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x10], eax
add ecx, 8
mov eax, dword [ebp - 0x48]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x44]
push eax
call fcn.10025330
mov eax, dword [esi + 0x18]
mov ecx, dword [eax]
add eax, 0x14
push eax
mov edx, dword [ecx]
call dword [edx + 0x18]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x10095b79
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10095b79
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x10095b79
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], 0
test eax, eax
je 0x10095ba5
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x10095b9e
call fcn.1004abe0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10095bca
push eax
call esi
test eax, eax
jne 0x10095bc3
cmp dword [ebp - 0x48], eax
jl 0x10095bc3
call fcn.1004abe0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
test edi, edi
je 0x10095bdc
push edi
call esi
mov dword [ebp - 0x1c], 0
mov al, 1
jmp 0x10095c73
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x10095c0e
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x10095c0e
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x10095c0e
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], 0
test eax, eax
je 0x10095c3a
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x10095c33
call fcn.1004abe0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10095c5f
push eax
call esi
test eax, eax
jne 0x10095c58
cmp dword [ebp - 0x48], eax
jl 0x10095c58
call fcn.1004abe0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
test edi, edi
je 0x10095c71
push edi
call esi
mov dword [ebp - 0x1c], 0
xor al, al
mov byte [ebp - 0x49], al
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10095c9b
mov eax, dword [ecx]
test eax, eax
je 0x10095c91
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x49]
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101912fd
mov esp, ebp
pop ebp
ret 4