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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xd1c
mov edi, dword [global_list.0]
mov ebx, dword [ebp + 8]
cmp edi, global_list.0
jne 0x421d66
jmp 0x421fa1
mov edi, dword [edi]
cmp edi, global_list.0
je 0x421fa1
cmp ebx, dword [edi + 8]
jne 0x421d58
mov dword [esp], 0x10
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x421fa1
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov edx, eax
mov dword [ebp - 0xce0], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0xcdc], ecx
call sym._SymLoadModuleExW_36
sub esp, 0x24
or edx, eax
je 0x421f98
mov eax, dword [ebp + 0x14]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x24]
mov dword [esi], eax
lea eax, [edi + 0x24]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x24]
mov dword [eax + 4], esi
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x24], esi
lea edi, [ebp - 0xcd8]
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 0x421f34
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 - 0xce4], eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov edx, dword [ebp - 0xce4]
sub esp, 0x14
test eax, eax
je 0x421f28
mov dword [ebp - 0xcec], edx
mov dword [esp], eax
mov dword [ebp - 0xce8], eax
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ecx, dword [ebp - 0xce8]
sub esp, 4
mov dword [ebp - 0xce4], eax
mov dword [esp], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 9
mov dword [esp + 4], 1
call dword [sym.imp.ntdll.dll_RtlImageDirectoryEntryToData]
mov ecx, dword [ebp - 0xce8]
mov edx, dword [ebp - 0xcec]
mov dword [ebp - 0xcf0], eax
mov eax, dword [ebp - 0xce4]
sub esp, 0x10
movzx eax, word [eax + 0x18]
cmp ax, 0x10b
je 0x421fad
cmp ax, 0x20b
jne 0x421f10
mov eax, dword [ebp - 0xcf0]
test eax, eax
je 0x421f10
cmp dword [ebp - 0xcd8], 0x27
jbe 0x421f10
sub eax, ecx
add eax, 0x10
mov dword [esi + 0xc], eax
nop
mov dword [ebp - 0xce4], edx
mov dword [esp], ecx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0xce4]
sub esp, 4
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0xce0]
mov edx, dword [ebp - 0xcdc]
mov dword [esp], ebx
mov ebx, 1
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [ebp - 0xcd8], 0xcc0
call sym._SymGetModuleInfoW64_16
sub esp, 0x10
test eax, eax
je 0x421fa3
mov eax, dword [ebp - 0x40]
or eax, dword [ebp - 0x3c]
je 0x421fa3
mov eax, dword [ebp + 0x10]
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 dbg.dbg_printf
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0xcf0]
test eax, eax
je 0x421f10
cmp dword [ebp - 0xcd8], 0x17
jbe 0x421f10
sub eax, ecx
add eax, 8
mov dword [esi + 0xc], eax
jmp 0x421f10