Function at 0x7d708bf0
Capabilities:
Access pe header

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 0x7d708c2d
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.kernel32.dll_SearchPathW
test eax, eax
je 0x7d708c6d
push 0
push 0
push 3
push 0
push 5
push 0x80000000
lea edx, [ebp - 0x220]
push edx
call sym.kernel32.dll_CreateFileW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x7d708c7a
xor eax, eax
jmp 0x7d708df3
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call sym.kernel32.dll_CreateFileMappingW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x7d708c9d
jmp 0x7d708dd9
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x14]
push edx
call sym.kernel32.dll_MapViewOfFile
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
push eax
call sym.kernel32.dll_CloseHandle
cmp dword [ebp - 4], 0
jne 0x7d708cc5
jmp 0x7d708dd9
mov ecx, dword [ebp + 0xc]
and ecx, 0x20
jne 0x7d708dbe
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ntext.dll_RtlImageNtHeader]
test eax, eax
jne 0x7d708ce4
jmp 0x7d708dd9
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 0x7d708dbc
push 0x10
push 0
call sym.kernel32.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x7d708d18
jmp 0x7d708dd9
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 0x7d758138
call fcn.7d708a80
add esp, 8
mov eax, dword [0x7d728b6c]
movzx ecx, byte [eax]
and ecx, 8
je 0x7d708db5
mov edx, 1
imul edx, edx, 0
movsx eax, byte [edx + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrappermodule.c]
cmp eax, 0x2e
jne 0x7d708d67
mov dword [ebp - 0x18], 0x12
jmp 0x7d708d6e
mov dword [ebp - 0x18], 0x21
push 0x7d7262d0
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 [0x7d728b6c]
push edx
push 3
call fcn.7d721620
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d708db5
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.7d721690
add esp, 0xc
mov eax, 1
jmp 0x7d708df3
jmp 0x7d708dc9
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.kernel32.dll_CloseHandle
mov eax, 1
jmp 0x7d708df3
cmp dword [ebp - 4], 0
je 0x7d708de8
mov ecx, dword [ebp - 4]
push ecx
call sym.kernel32.dll_UnmapViewOfFile
mov edx, dword [ebp - 0xc]
push edx
call sym.kernel32.dll_CloseHandle
xor eax, eax
mov esp, ebp
pop ebp
ret