Function at 0x4625c0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50da6d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 0xd], 0
push eax
call fcn.00463130
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x462654
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46264f
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x18]
lea ebx, [esi + 0x20]
jmp 0x4626ab
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x20], eax
lea ebx, [esi + 0x20]
test eax, eax
jne 0x462751
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4626ab
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 0x1c], 0
je 0x462782
mov bl, byte [ebp - 0xd]
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.004631d0
mov dword [ebp - 4], 4
push dword [ebp - 0x24]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
mov dword [ebp - 0x20], 0x5305e4
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x4626f2
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov byte [ebp - 4], 4
mov dword [ebp - 0x20], 0x5305e4
test esi, esi
je 0x46270f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x46273d
mov edi, dword [ecx]
push ecx
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x462782
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x18]
mov eax, dword [ebx]
push ecx
add eax, 4
push eax
lea eax, [esi + 8]
push eax
call fcn.00463430
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4627a7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], 0
mov eax, dword [ebx]
test eax, eax
je 0x4627ba
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx], 0
mov bl, 1
jmp 0x4626b8