Function at 0x7d708d60
Capabilities:
Access pe header
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 2
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
and ecx, 0x20
je 0x7d708d9d
mov edx, dword [ebp - 0x10]
or edx, 0x1000000
mov dword [ebp - 0x10], edx
push 0
lea eax, [ebp - 0x220]
push eax
push 0x104
push str..dll
mov ecx, dword [ebp + 0x10]
push ecx
push 0
call sym.kernelbase.dll_SearchPathW
test eax, eax
je 0x7d708ddd
push 0
push 0
push 3
push 0
push 5
push 0x80000000
lea edx, [ebp - 0x220]
push edx
call sym.kernelbase.dll_CreateFileW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x7d708dea
xor eax, eax
jmp 0x7d708f63
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call sym.kernelbase.dll_CreateFileMappingW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x7d708e0d
jmp 0x7d708f49
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x14]
push edx
call sym.kernelbase.dll_MapViewOfFile
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
push eax
call sym.kernelbase.dll_CloseHandle
cmp dword [ebp - 4], 0
jne 0x7d708e35
jmp 0x7d708f49
mov ecx, dword [ebp + 0xc]
and ecx, 0x20
jne 0x7d708f2e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntext.dll_RtlImageNtHeader]
test eax, eax
jne 0x7d708e54
jmp 0x7d708f49
mov eax, dword [ebp - 4]
add eax, 1
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
and edx, 0x40
je 0x7d708f2c
push 0x10
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x7d708e88
jmp 0x7d708f49
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov dword [eax + 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 8]
push edx
push str.HauHau
call fcn.7d708bf0
add esp, 8
mov eax, dword [str.8au]
movzx ecx, byte [eax]
and ecx, 8
je 0x7d708f25
mov edx, 1
imul edx, edx, 0
movsx eax, byte [edx + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrappermodule.c]
cmp eax, 0x2e
jne 0x7d708ed7
mov dword [ebp - 0x18], 0x12
jmp 0x7d708ede
mov dword [ebp - 0x18], 0x21
push 0x7d7242c0
push 0x7d
push str.load_library_as_datafile
mov ecx, dword [ebp - 0x18]
add ecx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrappermodule.c
push ecx
mov edx, dword [str.8au]
push edx
push 3
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d708f25
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
push str.delaying_close__p_for_module__p_n
call fcn.7d71f960
add esp, 0xc
mov eax, 1
jmp 0x7d708f63
jmp 0x7d708f39
mov ecx, dword [ebp - 4]
add ecx, 2
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov eax, dword [ebp - 0xc]
push eax
call sym.kernelbase.dll_CloseHandle
mov eax, 1
jmp 0x7d708f63
cmp dword [ebp - 4], 0
je 0x7d708f58
mov ecx, dword [ebp - 4]
push ecx
call sym.kernelbase.dll_UnmapViewOfFile
mov edx, dword [ebp - 0xc]
push edx
call sym.kernelbase.dll_CloseHandle
xor eax, eax
mov esp, ebp
pop ebp
ret