Function at 0x416780
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4314bb
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x453460]
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 ebx, edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [ebx], 0
mov dword [ebp - 0x44], edx
mov dword [eax], 0
mov byte [edx], 0
mov edx, ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], eax
call fcn.00416640
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x4167e1
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x416814
push dword [ebp - 0x28]
call fcn.0041a286
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
jne 0x416834
xor al, al
jmp 0x416981
push 0xc
call fcn.0041a2d6
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41686e
mov dword [eax], vtable.appv::utility::scope_guard_func.0
mov byte [ebp - 4], 2
mov dword [eax], vtable.appv::utility::scope_guard_func_impl_class_std::_Bind_0__void__int____stdcall___void____void____.0
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov byte [ebp - 4], 1
jmp 0x416870
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 4
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
jne 0x41689f
xor bl, bl
jmp 0x416970
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], edi
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x2c], esi
call fcn.00418700
mov byte [ebp - 4], 5
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4168d1
xor bl, bl
jmp 0x416964
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x2c], edi
call fcn.00418790
mov byte [ebp - 4], 6
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x41691d
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
je 0x41690b
mov dword [ebx], 1
jmp 0x416956
movzx eax, word [esi + 4]
cmp eax, 0x14c
je 0x416929
cmp eax, 0x8664
je 0x416921
xor bl, bl
jmp 0x416958
mov dword [ebx], 3
jmp 0x41694d
mov edx, edi
mov dword [ebx], 2
mov ecx, esi
call fcn.004169a0
test eax, eax
je 0x41694d
mov eax, dword [eax + 0x10]
test al, 1
je 0x41694d
test al, 2
jne 0x41694d
mov eax, dword [ebp - 0x44]
mov byte [eax], 1
mov ecx, dword [ebp - 0x34]
movzx eax, word [esi + 0x5c]
mov dword [ecx], eax
mov bl, 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.00411cf0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.00411cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00411cf0
mov al, bl
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.00419933
mov esp, ebp
pop ebp
ret