Function at 0x402740
Capabilities:
Get process heap flags

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4028dc
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0
mov ebp, dword fs:[0x18]
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x40
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esp + 0x28], eax
call eax
sub esp, 0xc
mov dword [esp + 0x34], eax
test eax, eax
je 0x4028dc
mov ebx, dword [esp + 0x2c]
jmp 0x402830
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._memcpy
xor eax, eax
mov word [esi + edi], ax
mov eax, esi
call sym._lookup_expression.constprop.0
mov dword [esp + 8], esi
mov edi, dword [sym.imp.kernel32.dll_HeapFree]
mov dword [esp + 4], 0
mov ebx, eax
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test ebx, ebx
je 0x402920
mov edx, ebx
lea eax, [esp + 0x34]
mov ecx, 0xffffffff
call sym._strbuf_append.isra.0
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov ebx, dword [esp + 0x24]
add ebx, 2
mov dword [esp + 4], 0x40b0f0
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcsstr]
mov esi, eax
test eax, eax
je 0x402903
mov ecx, esi
mov edx, ebx
lea eax, [esp + 0x34]
sub ecx, ebx
lea ebx, [esi + 4]
sar ecx, 1
call sym._strbuf_append.isra.0
mov dword [esp + 4], 0x40b0ec
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcsstr]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4028f0
mov edi, dword [esp + 0x24]
mov dword [esp + 4], 0
sub edi, ebx
lea eax, [edi + 2]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
call eax
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x4027b0
mov ebx, dword [sym.imp.kernel32.dll_HeapFree]
test byte [section..data], 1
jne 0x402930
mov edx, dword [esp + 0x34]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call ebx
sub esp, 0xc
add esp, 0x4c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, 2
mov edx, 0x40b0f0
lea eax, [esp + 0x34]
call sym._strbuf_append.isra.0
lea eax, [esp + 0x34]
mov edx, ebx
mov ecx, 0xffffffff
call sym._strbuf_append.isra.0
mov eax, dword [esp + 0x34]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, edi
test byte [section..data], 1
je 0x4028b8
lea esi, [esi]
nop
mov eax, dword [esp + 0x2c]
shr eax, 0x10
je 0x402995
mov edi, dword [esp + 0x2c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x40b00d
test edx, edx
jne 0x402968
mov edx, 0xffffffff
mov eax, edi
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Couldnt_resolve_expression__s_n
mov dword [esp + 8], str.expand_expression
mov dword [esp + 4], 0x40a000
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x4028b8
movzx eax, word [esp + 0x2c]
mov dword [esp], section..rdata
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x402968