Function at 0x1001c38
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 0x1001cd9
add dword [ebp - 4], 0x14
lea eax, [edi - 4]
mov edi, dword [edi]
add eax, 0xc
mov esi, dword [eax]
mov dword [ebp - 0x30], eax
cmp esi, eax
je 0x1001cd3
jmp 0x1001c73
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]
mov dword [ebp - 0x38], eax
cmp esi, eax
je 0x1001cc2
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 0x1001cbd
mov eax, dword [ebp - 8]
add dword [ebp - 4], eax
cmp esi, dword [ebp - 0x38]
jne 0x1001c95
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0xc], eax
jne 0x1001c70
lea eax, [ebx + 0x80]
cmp edi, eax
jne 0x1001c59
mov eax, dword [ebp - 4]
xor esi, esi
cmp eax, dword [ebx + 0x60]
jbe 0x1001d75
push 0x10013b0
push eax
push esi
push 4
call fcn.01003304
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
cmp edi, esi
jne 0x1001d1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x1001dd0
push dword [ebp - 4]
push esi
push esi
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x38], eax
cmp eax, esi
jne 0x1001d44
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001dd0
mov eax, dword [ebx + 0x5c]
cmp eax, esi
je 0x1001d55
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 0x5c], esi
mov eax, dword [ebx + 0x58]
cmp eax, esi
je 0x1001d66
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.01003b20
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.01003b7d
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x1001f76
lea ecx, [ebx + 0x80]
mov eax, dword [ecx]
cmp eax, ecx
jne 0x1001ddb
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.01003b7d
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x1001f76
lea ecx, [edi + 0xc]
mov eax, dword [ecx]
mov dword [ebp - 0x1c], esi
cmp eax, ecx
je 0x1001f43
jmp 0x1001e1d
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.01003b7d
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x1001f76
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 0x1001f14
jmp 0x1001e68
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.01003b7d
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x1001f6c
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 0x1001ee2
push esi
push dword [ebp - 8]
lea ecx, [ebp - 0x54]
push esi
call fcn.01003be5
test eax, eax
jne 0x1001ee2
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 0x1001ee2
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
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x14]
cmp dword [ebp - 0x28], eax
jne 0x1001e63
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 0x1001e18
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 0x1001dd8
jmp 0x1001dbb
add edi, 0x54
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1001dd0