Function at 0x1006bd30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e4af0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1025f074]
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 0x1006bd86
mov eax, dword [eax]
test eax, eax
je 0x1006bd86
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 0x1006c071
mov eax, dword [esi + 0x18]
cmp dword [eax], 0
je 0x1006c071
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 0x1006bdc3
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 0x1006bdf6
call fcn.10004ba0
test eax, eax
js 0x1006c05f
jmp 0x1006bdfb
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 0x1006be47
call fcn.10004ba0
jmp 0x1006be8c
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 0x1006be94
call fcn.10004ba0
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 0x1006c00e
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 0x1006c00e
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.1004a5e0
cmp dword [ebp - 0x50], 0
jbe 0x1006bfe3
cmp dword [ebp - 0x48], 0
jbe 0x1006bfe3
cmp dword [ebp - 0x44], 0
je 0x1006bfe3
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.1006c490
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 0x1006bf79
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x1006bf79
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x1006bf79
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 0x1006bfa5
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x1006bf9e
call fcn.10004ba0
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 0x1006bfca
push eax
call esi
test eax, eax
jne 0x1006bfc3
cmp dword [ebp - 0x48], eax
jl 0x1006bfc3
call fcn.10004ba0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
test edi, edi
je 0x1006bfdc
push edi
call esi
mov dword [ebp - 0x1c], 0
mov al, 1
jmp 0x1006c073
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x1006c00e
or esi, 0xffffffff
mov eax, esi
lock xadd dword [ecx + 4], eax
jne 0x1006c00e
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x40]
lock xadd dword [ecx + 8], esi
dec esi
jne 0x1006c00e
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 0x1006c03a
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x1006c033
call fcn.10004ba0
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 0x1006c05f
push eax
call esi
test eax, eax
jne 0x1006c058
cmp dword [ebp - 0x48], eax
jl 0x1006c058
call fcn.10004ba0
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
test edi, edi
je 0x1006c071
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 0x1006c09b
mov eax, dword [ecx]
test eax, eax
je 0x1006c091
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.101b3122
mov esp, ebp
pop ebp
ret 4