Function at 0x10409290
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x11ad127c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
imul eax, edi, 0x7d0
lea esi, [ebx + 8]
add esi, eax
cmp byte [esi + 0x64d], 0
jne 0x1040957a
call fcn.104095b0
test al, al
je 0x10409597
push edi
push dword [0x11d0bb48]
lea eax, [ebp - 0x7c]
push 0x10468040
push 0x3c
push eax
call fcn.100086c0
add esp, 0x14
lea eax, [ebp - 0x7c]
mov ecx, ebx
push eax
mov eax, dword [ebx]
push 0x2330
push 0
call dword [eax]
push eax
push 0x11d0bb50
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x10409326
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10468080
call fcn.102fb670
add esp, 8
jmp 0x10409597
mov eax, dword [ebx]
mov ecx, ebx
push 0x2330
push 0
push 0
call dword [eax + 8]
push eax
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x48], eax
test eax, eax
je 0x1040958f
push edi
mov dword [esi + 0x5c], 0x24000
lea eax, [ebp - 0x7c]
push dword [0x11d0bb48]
push 0x104680b0
push 0x3c
push eax
call fcn.100086c0
add esp, 0x14
lea eax, [ebp - 0x7c]
mov ecx, ebx
push eax
push dword [esi + 0x5c]
mov eax, dword [ebx]
push 0
call dword [eax + 4]
push eax
push 0x11d0bb50
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x20], eax
test eax, eax
je 0x1040958f
push dword [esi + 0x5c]
mov eax, dword [ebx]
mov ecx, ebx
push 0
push 0
call dword [eax + 0xc]
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x4c], eax
test eax, eax
je 0x1040958f
push edi
push dword [0x11d0bb48]
lea eax, [ebp - 0x7c]
push 0x104680f0
push 0x3c
push eax
call fcn.100086c0
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
push 0x1000
push 0
push 0x8000004
push 0x11d0bb50
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x24], eax
test eax, eax
je 0x1040958f
push 0x1000
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x50], eax
test eax, eax
je 0x1040958f
push edi
push dword [0x11d0bb48]
lea eax, [ebp - 0x7c]
push 0x10468140
push 0x3c
push eax
call fcn.100086c0
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
push 0
push 1
push 0x11d0bb50
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x1040958f
push edi
push dword [0x11d0bb48]
lea eax, [ebp - 0x7c]
push 0x10468190
push 0x3c
push eax
call fcn.100086c0
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
push 0x11d0bb50
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x34], eax
test eax, eax
je 0x1040958f
push edi
push dword [0x11d0bb48]
lea eax, [ebp - 0x7c]
push 0x104681e0
push 0x3c
push eax
call fcn.100086c0
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
push 0
push 1
push 0x11d0bb50
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x28], eax
test eax, eax
je 0x1040958f
push edi
push dword [0x11d0bb48]
lea eax, [ebp - 0x7c]
push 0x10468230
push 0x3c
push eax
call fcn.100086c0
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
push 1
push 1
push 0x11d0bb50
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x1040958f
push edi
push dword [0x11d0bb48]
lea eax, [ebp - 0x7c]
push 0x10468280
push 0x3c
push eax
call fcn.100086c0
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x11d0bb50
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x38], eax
test eax, eax
je 0x1040958f
test edi, edi
jne 0x10409569
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [0x11d0bb48]
lea eax, [ebp - 0x7c]
push 0x104682d0
push 0x3c
push eax
call fcn.100086c0
add esp, 0x14
lea eax, [ebp - 0x7c]
push eax
push edi
push 1
push 0x11d0bb50
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x44], eax
test eax, eax
jne 0x10409569
push eax
jmp 0x10409590
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x68], edi
mov byte [esi + 0x64d], 1
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4
push edi
mov ecx, ebx
call fcn.104088e0
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1045066c
mov esp, ebp
pop ebp
ret 4