Function at 0x1001c41
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
mov ebx, ecx
push esi
lea eax, [ebx + 0x80]
push edi
mov edi, dword [eax]
mov dword [ebp - 4], 8
jmp 0x1001ce2
add dword [ebp - 4], 0x14
lea eax, [edi - 4]
mov edi, dword [edi]
add eax, 0xc
mov esi, dword [eax]
cmp esi, eax
mov dword [ebp - 0x30], eax
je 0x1001cdc
jmp 0x1001c7c
mov esi, dword [ebp - 0xc]
mov eax, dword [esi]
add dword [ebp - 4], 0x14
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x54]
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 8]
mov esi, dword [eax]
cmp esi, eax
mov dword [ebp - 0x38], eax
je 0x1001ccb
add dword [ebp - 4], 0x24
lea edx, [ebp - 8]
mov eax, esi
mov esi, dword [esi]
and dword [ebp - 8], 0
mov eax, dword [eax + 0x1c]
mov ecx, dword [eax]
push edx
push 0
push eax
call dword [ecx + 0x28]
cmp eax, 0x80158100
jne 0x1001cc6
mov eax, dword [ebp - 8]
add dword [ebp - 4], eax
cmp esi, dword [ebp - 0x38]
jne 0x1001c9e
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0xc], eax
jne 0x1001c79
lea eax, [ebx + 0x80]
cmp edi, eax
jne 0x1001c62
mov eax, dword [ebp - 4]
xor esi, esi
cmp eax, dword [ebx + 0x60]
jbe 0x1001d7e
push 0x1001368
push eax
push esi
push 4
call fcn.010031e3
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, esi
jne 0x1001d23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1001dd9
push dword [ebp - 4]
push esi
push esi
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp - 0x38], eax
jne 0x1001d4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001dd9
mov eax, dword [ebx + 0x5c]
cmp eax, esi
je 0x1001d5e
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 0x5c], esi
mov eax, dword [ebx + 0x58]
cmp eax, esi
je 0x1001d6f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x58], esi
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x5c], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x58], edi
mov dword [ebx + 0x60], eax
push 0xffffffffffffffff
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push dword [ebx + 0x60]
lea ecx, [ebp - 0x54]
push dword [ebx + 0x5c]
call fcn.010037c9
mov eax, dword [ebp - 0x50]
push esi
push 8
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x3c], eax
call fcn.01003826
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1001f7f
lea ecx, [ebx + 0x80]
mov eax, dword [ecx]
cmp eax, ecx
jne 0x1001de4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 4], eax
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x38]
inc dword [ebp - 0x20]
lea edi, [eax - 4]
mov eax, dword [eax]
push esi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x50]
push 0x14
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], eax
call fcn.01003826
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1001f7f
lea ecx, [edi + 0xc]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [ebp - 0x1c], esi
je 0x1001f4c
jmp 0x1001e26
mov eax, dword [ebp - 0xc]
xor esi, esi
inc dword [ebp - 0x1c]
mov edi, eax
mov eax, dword [eax]
push esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x50]
push 0x14
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x2c], eax
call fcn.01003826
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1001f7f
lea eax, [edi + 0x54]
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [edi + 8]
mov eax, dword [ecx]
cmp eax, ecx
je 0x1001f1d
jmp 0x1001e71
mov eax, dword [ebp - 0x28]
xor esi, esi
inc dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [eax]
push esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x50]
push 0x24
push esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x10], eax
call fcn.01003826
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x1001f75
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 0x24]
mov dword [eax + 0x20], esi
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], esi
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x28]
cmp eax, 0x80158100
jne 0x1001eeb
push esi
push dword [ebp - 8]
lea ecx, [ebp - 0x54]
push esi
call fcn.01003894
test eax, eax
jne 0x1001eeb
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push dword [ebp - 0x4c]
push eax
call dword [ecx + 0x28]
test eax, eax
jne 0x1001eeb
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], eax
mov eax, dword [edi + 0x14]
mov edi, dword [ebp - 0x10]
lea esi, [eax + 0x18]
mov eax, dword [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 0x14]
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
add edi, 0x10
add esi, 0x28
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add eax, 8
cmp dword [ebp - 0x28], eax
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x14]
jne 0x1001e6c
lea eax, [edi + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
lea esi, [edi + 0x1c]
mov edi, dword [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x30]
add eax, 0xc
cmp dword [ebp - 0xc], eax
jne 0x1001e21
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
lea esi, [edi + 0x18]
mov edi, dword [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [eax + 0x10], ecx
lea eax, [ebx + 0x80]
xor esi, esi
cmp dword [ebp - 0x38], eax
jne 0x1001de1
jmp 0x1001dc4
add edi, 0x54
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1001dd9