Function at 0x42b610
Capabilities:
Get process heap flags
Parse pe header

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff8
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xadc
mov eax, dword [ecx + 4]
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 0x6a0], 0x690
mov edx, dword [ecx + 8]
lea ecx, [ebp - 0x6a0]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.dbghelp.dll_SymGetModuleInfo64]
sub esp, 0x10
test eax, eax
je 0x42b675
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
je 0x42b690
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
lea esi, [ebx + 0x1bc]
mov ecx, 0xf
mov edx, str._library_name_
mov eax, esi
call sym._reply_buffer_append
cmp dword [ebp - 0x55c], 0x7364765b
je 0x42b8cc
cmp byte [ebp - 0x55c], 0x2f
je 0x42b8f1
lea eax, [ebp - 0x55c]
mov dword [esp + 4], eax
lea eax, [ebp - 0xaa0]
mov edi, eax
mov dword [ebp - 0xad0], eax
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlInitAnsiString]
lea eax, [ebp - 0xabc]
sub esp, 8
mov dword [ebp - 0xad4], eax
mov dword [esp + 4], edi
mov dword [esp + 8], 1
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
mov eax, dword [ebp - 0xab8]
sub esp, 0xc
mov dword [esp], eax
call sym._wine_get_unix_file_name
mov edi, eax
test eax, eax
je 0x42b9e2
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + 0x38]
test eax, eax
jne 0x42b91b
mov edx, edi
mov eax, esi
call sym._reply_buffer_append_xmlstr
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0xad4]
sub esp, 0xc
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
sub esp, 4
mov edx, 0x43f647
mov ecx, 2
mov eax, esi
call sym._reply_buffer_append
mov eax, dword [ebp - 0xad4]
mov dword [esp + 0xc], 0x1c
mov dword [ebp - 0xac8], 0x400
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x698]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_VirtualQueryEx]
mov edx, dword [ebp - 0xac8]
sub esp, 0x10
cmp eax, 0x1b
jbe 0x42b7db
cmp dword [ebp - 0xaa4], 0x1000000
je 0x42b946
mov edi, dword [ebp - 0xad0]
mov ecx, 0x100
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0xad0]
mov dword [ebp - 0xad8], edi
mov edi, dword [ebp - 0xad8]
lea ebx, [ebp - 0xac4]
mov dword [ebp - 0xacc], 0
lea edi, [edi + eax + 0x18]
mov eax, edx
add eax, dword [ebp - 0xad0]
cmp edi, eax
jae 0x42b8b6
mov edx, str._segment_address_0x
mov eax, esi
mov ecx, 0x14
call sym._reply_buffer_append
mov eax, dword [ebp - 0xad4]
mov edx, dword [edi + 0xc]
add edx, dword [ebp - 0x698]
mov ecx, edx
dec eax
shr edx, 4
and ecx, 0xf
movzx ecx, byte [ecx + 0x43f30b]
mov byte [eax], cl
cmp eax, ebx
jne 0x42b840
mov ecx, 8
mov edx, ebx
mov eax, esi
add edi, 0x28
call sym._reply_buffer_append
mov ecx, 3
mov edx, 0x43f5d6
mov eax, esi
call sym._reply_buffer_append
mov eax, dword [ebp - 0xad8]
inc dword [ebp - 0xacc]
mov edx, dword [ebp - 0xacc]
mov ecx, eax
cmp word [eax + 6], 0
mov eax, 1
cmovne ax, word [ecx + 6]
movzx eax, ax
cmp eax, edx
jbe 0x42b8b6
mov eax, dword [ebp - 0xac8]
add eax, dword [ebp - 0xad0]
cmp edi, eax
jb 0x42b820
mov ecx, 0xa
mov edx, str.__library_
mov eax, esi
call sym._reply_buffer_append
jmp 0x42b675
cmp dword [ebp - 0x558], 0x732e5d6f
jne 0x42b6b7
cmp word [ebp - 0x554], 0x6f
mov edx, str.linux_vdso.so.1
jne 0x42b6b7
jmp 0x42b8f7
lea edx, [ebp - 0x55c]
mov eax, esi
call sym._reply_buffer_append_xmlstr
lea eax, [ebp - 0xaa0]
mov dword [ebp - 0xad0], eax
lea eax, [ebp - 0xabc]
mov dword [ebp - 0xad4], eax
jmp 0x42b774
mov dword [esp + 4], str.system32
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strstr]
test eax, eax
je 0x42b735
mov dword [eax], 0x77737973
mov dword [eax + 4], 0x3436776f
jmp 0x42b735
cmp dword [ebp - 0xaac], 0x10000
je 0x42b7db
lea eax, [ebp - 0xac8]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xad0]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x698]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadProcessMemory]
mov edx, dword [ebp - 0xac8]
sub esp, 0x14
test eax, eax
je 0x42b7db
cmp edx, 0x3f
jbe 0x42b7db
cmp word [ebp - 0xaa0], 0x5a4d
jne 0x42b7db
mov eax, dword [ebp - 0xa64]
cmp edx, eax
jbe 0x42b7db
add eax, dword [ebp - 0xad0]
cmp dword [eax], 0x4550
mov dword [ebp - 0xad8], eax
jne 0x42b7db
movzx eax, word [eax + 0x14]
jmp 0x42b7f6
lea edx, [ebp - 0x55c]
mov eax, esi
call sym._reply_buffer_append_xmlstr
jmp 0x42b73e