Function at 0x413780
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43101b
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x43e100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x78], edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x7c], edi
mov dword [edi + 0x24], 0
mov dword [ebp - 0x74], ebx
mov dword [edi], vtable.std::_Func_impl_no_alloc_class__lambda_d6cd91209deb012f0af5adb68197586f___void__struct_HookParam__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___.0
mov dword [edi + 0x24], edi
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x2c], eax
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [ebp - 4], 0
call fcn.0041bac0
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push str.LUNA_VNR_SECTION_
push eax
call fcn.00412050
add esp, 0x14
cmp dword [eax + 0x14], 7
jbe 0x4137fe
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push eax
push 0
push 4
call esi
mov dword [edi + 0x30], eax
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x41384c
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413842
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a39
push ecx
push edx
call fcn.0042061f
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp ecx, 7
jbe 0x41389e
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413894
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a39
push ecx
push edx
call fcn.0042061f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x70]
push ebx
push eax
mov dword [ebp - 0x14], 7
call fcn.0041bac0
push eax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push str.EMBED_SHARED_MEM
push eax
call fcn.00412050
add esp, 0x14
cmp dword [eax + 0x14], 7
jbe 0x4138da
mov eax, dword [eax]
push eax
push 0
push 6
call esi
mov dword [edi + 0x34], eax
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 5
cmp ecx, 7
jbe 0x413922
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x413918
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a3e
push ecx
push edx
call fcn.0042061f
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov ecx, dword [ebp - 0x5c]
mov byte [ebp - 4], 6
cmp ecx, 7
jbe 0x413974
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41396a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a3e
push ecx
push edx
call fcn.0042061f
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor eax, eax
push 0x423920
push eax
push eax
push 4
push dword [edi + 0x30]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call ebx
push dword [ebp - 0x74]
mov dword [edi + 0x38], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041bac0
add esp, 8
push 0
sub esp, 0x18
mov byte [ebp - 4], 7
mov edx, esp
push eax
push str.LUNA_VNR_HOOKMAN_
push edx
call fcn.00412050
add esp, 0xc
lea ecx, [edi + 0x3c]
call fcn.00413a50
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x413a06
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4139fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413a43
push ecx
push edx
call fcn.0042061f
add esp, 8
push 0xa00
push 0
push 0
push 6
push dword [edi + 0x34]
call ebx
mov dword [edi + 0x28], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042082a
mov esp, ebp
pop ebp
ret 8
call fcn.00421920
call fcn.00421920
call fcn.00421920
int3