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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
mov eax, ecx
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xd04
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
mov ebx, dword [0x43ad60]
mov ecx, dword [ecx + 8]
mov dword [ebp - 0xcd4], esi
mov esi, dword [eax + 0xc]
mov dword [ebp - 0xcdc], ecx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0xcd8], esi
cmp ebx, 0x43ad60
jne 0x4185de
jmp 0x418849
mov ebx, dword [ebx]
cmp ebx, 0x43ad60
je 0x418849
cmp edi, dword [ebx + 8]
jne 0x4185d0
mov dword [ebp - 0xce4], edx
mov dword [esp], 0x10
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0xce4]
test eax, eax
mov esi, eax
je 0x418849
mov eax, dword [ebp - 0xcd8]
mov dword [esp + 0x18], edx
mov dword [ebp - 0xce0], 0
mov edx, dword [ebp - 0xce0]
mov dword [ebp - 0xce4], eax
mov eax, dword [ebp - 0xce4]
mov dword [esp + 0x20], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xcdc]
mov dword [esp + 0x1c], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xcd4]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.dbghelp.dll_SymLoadModuleExW]
sub esp, 0x24
or edx, eax
je 0x418840
mov eax, dword [ebp - 0xcd8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x24]
mov dword [esi], eax
lea eax, [ebx + 0x24]
mov dword [esi + 4], eax
mov eax, dword [ebx + 0x24]
mov dword [eax + 4], esi
mov eax, dword [ebp - 0xcd4]
mov dword [ebx + 0x24], esi
lea ebx, [ebp - 0xcd0]
mov dword [esi + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
sub esp, 0x18
test eax, eax
je 0x4187d4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov dword [esp], eax
mov dword [ebp - 0xcd4], eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov ecx, dword [ebp - 0xcd4]
sub esp, 0x14
test eax, eax
je 0x4187c8
mov dword [ebp - 0xce8], ecx
mov dword [esp], eax
mov dword [ebp - 0xcd8], eax
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov edx, dword [ebp - 0xcd8]
sub esp, 4
mov dword [ebp - 0xcd4], eax
mov dword [esp], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 9
mov dword [esp + 4], 1
call dword [sym.imp.ntdll.dll_RtlImageDirectoryEntryToData]
mov edx, dword [ebp - 0xcd8]
mov ecx, dword [ebp - 0xce8]
mov dword [ebp - 0xcec], eax
mov eax, dword [ebp - 0xcd4]
sub esp, 0x10
movzx eax, word [eax + 0x18]
cmp ax, 0x10b
je 0x418859
cmp ax, 0x20b
jne 0x4187b0
mov eax, dword [ebp - 0xcec]
test eax, eax
je 0x4187b0
cmp dword [ebp - 0xcd0], 0x27
jbe 0x4187b0
sub eax, edx
add eax, 0x10
mov dword [esi + 0xc], eax
lea esi, cs:[esi]
mov dword [ebp - 0xcd4], ecx
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0xcd4]
sub esp, 4
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0xce4]
mov edx, dword [ebp - 0xce0]
mov dword [esp], edi
mov dword [esp + 0xc], ebx
mov ebx, 1
mov dword [ebp - 0xcd0], 0xcc0
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call dword [sym.imp.dbghelp.dll_SymGetModuleInfoW64]
sub esp, 0x10
test eax, eax
je 0x41884b
mov eax, dword [ebp - 0x38]
or eax, dword [ebp - 0x34]
je 0x41884b
mov eax, dword [ebp - 0xcdc]
call sym._wine_dbgstr_wn.constprop.0_1
mov dword [esp], str.Loaded_unmatched_debug_information_for__s_n
mov dword [esp + 4], eax
call sym._dbg_printf
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
xor ebx, ebx
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0xcec]
test eax, eax
je 0x4187b0
cmp dword [ebp - 0xcd0], 0x17
jbe 0x4187b0
sub eax, edx
add eax, 8
mov dword [esi + 0xc], eax
jmp 0x4187b0