Function at 0x412d40
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x41a17c]
test eax, eax
jne 0x412b91
mov eax, dword [0x41a178]
mov dword [0x41a17c], 1
test eax, eax
jne 0x412a23
mov dword [0x41a178], 1
mov eax, dword [0x41a160]
test eax, eax
je 0x412e8d
mov eax, dword [0x41a15c]
test eax, eax
je 0x412ea4
mov eax, dword [0x41a18c]
test eax, eax
je 0x412bd0
mov edx, dword [0x41a194]
lea edx, [eax + edx*4]
mov eax, dword [edx]
test eax, eax
je 0x412bd0
mov ebx, dword [eax + 8]
mov ecx, dword [eax + 0x10]
mov esi, dword [0x41a178]
mov dword [0x41a154], ebx
mov eax, dword [edx]
mov dword [0x41a184], ecx
mov eax, dword [eax]
mov dword [ebp - 0x24], ebx
mov dword [0x41a160], eax
movzx eax, byte [ebx]
mov byte [ebx], al
xor edi, edi
lea esi, [esi]
nop
mov ecx, dword [ebp - 0x20]
movzx eax, byte [ebx]
cmp word [esi + esi + 0x419240], 0
cmovne ecx, esi
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x1c]
cmovne ecx, ebx
mov dword [ebp - 0x1c], ecx
mov ecx, 1
cmovne edi, ecx
movzx ecx, byte [eax + 0x419140]
movsx eax, word [esi + esi + 0x4190e0]
add eax, ecx
movsx edx, word [eax + eax + 0x418f40]
cmp esi, edx
je 0x412b03
lea esi, [esi]
nop
movsx esi, word [esi + esi + 0x419080]
mov edx, esi
cmp si, 0x1b
jle 0x412aef
movzx ecx, byte [ecx + 0x419124]
movsx eax, word [esi + esi + 0x4190e0]
add eax, ecx
cmp dx, word [eax + eax + 0x418f40]
jne 0x412ad8
movsx esi, word [eax + eax + 0x418fe0]
add ebx, 1
cmp esi, 0x1b
jne 0x412a90
mov eax, edi
test al, al
je 0x412bae
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov dword [0x41a174], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x41a170], eax
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov dword [0x41a154], esi
mov dword [ebp - 0x24], esi
mov edx, edi
mov dword [0x41a180], edi
movsx eax, word [eax + eax + 0x419240]
sub edx, esi
mov dword [0x41a164], edx
movzx edx, byte [edi]
mov byte [edi], 0
mov byte [0x41a188], dl
cmp eax, 0x11
ja case.default.0x412b70
jmp dword [eax*4 + 0x418c94]
mov edx, dword [0x41a16c]
mov eax, dword [edx + 4]
lea ecx, [eax + 1]
mov dword [edx + 4], ecx
mov edx, dword [0x41a154]
movzx edx, byte [edx]
mov byte [eax], dl
mov ebx, dword [0x41a180]
movzx eax, byte [0x41a188]
mov byte [ebx], al
mov esi, dword [0x41a178]
mov dword [ebp - 0x24], ebx
jmp 0x412a86
mov eax, dword [0x41a174]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41a170]
mov dword [ebp - 0x1c], eax
jmp 0x412b34
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call dbg.yyensure_buffer_stack
mov edx, dword [0x41a194]
mov eax, dword [0x41a18c]
mov dword [esp + 4], 0x4000
lea ebx, [eax + edx*4]
mov eax, dword [0x41a160]
mov dword [esp], eax
call dbg.yy_create_buffer
mov edx, dword [0x41a194]
mov dword [ebx], eax
mov eax, dword [0x41a18c]
lea edx, [eax + edx*4]
mov eax, dword [edx]
jmp 0x412a5d
mov ebx, dword [0x41a16c]
mov eax, dword [ebx + 0x88]
test eax, eax
jne 0x412ebb
mov esi, dword [ebx + 0x10c]
cmp esi, 0x1f
ja 0x4130c2
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 4], 0
add eax, 1
mov dword [esp + 8], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [0x41a178], 3
mov dword [ebx + esi*4 + 0x8c], eax
mov ebx, dword [0x41a16c]
sub esp, 0xc
add dword [ebx + 0x10c], 1
mov dword [ebx + 4], eax
mov dword [0x41a14c], eax
mov eax, dword [0x41a154]
mov ecx, dword [ebx + 0x88]
movsx eax, byte [eax]
lea edx, [ecx + 1]
mov dword [ebx + 0x88], edx
mov dword [ebx + ecx*4 + 8], eax
cmp edx, 0x1f
jbe 0x412b91
mov dword [esp + 8], 0x55
mov dword [esp + 4], str._private_tmp_game_porting_toolkit_20240316_16507_xzjwx8_wine_programs_winhlp32_macro.lex.l
mov dword [esp], str.lex_data__quote_stk_idx___ARRAY_SIZE_lex_data__quote_stack_
call dword [sym.imp.ucrtbase.dll__assert]
jmp 0x412b91
mov edx, dword [0x41a16c]
mov eax, dword [edx + 4]
lea ecx, [eax + 1]
mov dword [edx + 4], ecx
mov edx, dword [0x41a154]
movzx edx, byte [edx + 1]
mov byte [eax], dl
jmp 0x412b91
movzx eax, byte [0x41a188]
mov ebx, dword [0x41a180]
jmp 0x412b9e
mov eax, dword [0x41a154]
movsx eax, byte [eax]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x41a15c]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [0x41a164]
mov dword [esp + 4], eax
mov eax, dword [0x41a154]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
jmp 0x412b91
mov edi, dword [ebp - 0x1c]
mov edx, dword [0x41a194]
mov ecx, dword [0x41a184]
mov eax, edi
sub eax, dword [0x41a154]
sub eax, 1
mov dword [ebp - 0x30], eax
movzx eax, byte [0x41a188]
mov byte [edi], al
mov eax, dword [0x41a18c]
lea esi, [eax + edx*4]
mov ebx, dword [esi]
mov edi, dword [ebx + 0x2c]
test edi, edi
jne 0x412d92
mov eax, dword [0x41a160]
mov ecx, dword [ebx + 0x10]
mov dword [ebx], eax
mov eax, dword [esi]
mov dword [0x41a184], ecx
mov dword [eax + 0x2c], 1
mov ebx, dword [esi]
mov eax, dword [ebx + 4]
mov edx, dword [0x41a180]
lea edi, [eax + ecx]
mov dword [ebp - 0x2c], edi
mov edi, dword [0x41a154]
mov dword [ebp - 0x28], edi
cmp dword [ebp - 0x2c], edx
jae 0x4131ba
lea ecx, [eax + ecx + 1]
cmp ecx, edx
jb 0x41319d
mov ecx, dword [ebp - 0x28]
mov edi, edx
sub edi, ecx
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0x34], edi
test ecx, ecx
jne 0x412f0f
cmp edi, 1
je 0x413069
mov edi, dword [ebp - 0x2c]
mov dword [0x41a180], edi
call dbg.yy_get_previous_state
mov dword [ebp - 0x1c], edi
mov esi, dword [0x41a154]
mov dword [ebp - 0x20], eax
jmp 0x412b34
movzx eax, byte [0x41a188]
mov edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
mov byte [edi], al
mov eax, dword [0x41a170]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x41a174]
mov dword [ebp - 0x20], eax
jmp 0x412b34
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0
mov eax, dword [0x41a154]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strtol]
mov dword [0x41a148], eax
lea esp, [ebp - 0xc]
mov eax, 3
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov eax, dword [0x41a154]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strtol]
jmp 0x412e3e
mov dword [esp + 4], 0x41a140
mov eax, dword [0x41a154]
mov dword [esp], eax
call dbg.MACRO_Lookup
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [0x41a160], eax
jmp 0x412a30
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [0x41a15c], eax
jmp 0x412a3d
mov edx, dword [0x41a154]
movzx ecx, byte [edx]
cmp cl, 0x22
je 0x412ef2
cmp cl, 0x60
je 0x412efc
lea ecx, [eax - 1]
mov dword [ebx + 0x88], ecx
test ecx, ecx
je 0x41317d
mov eax, dword [ebx + 4]
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
movzx edx, byte [edx]
mov byte [eax], dl
jmp 0x412b91
cmp dword [ebx + eax*4 + 4], 0x22
lea ecx, [eax - 1]
je 0x412ed1
mov ecx, dword [ebx + 4]
lea eax, [ecx + 1]
mov dword [ebx + 4], eax
movzx eax, byte [edx]
mov byte [ecx], al
jmp 0x412c8b
mov edi, dword [ebp - 0x34]
sub edi, 1
test edi, edi
jle 0x41315d
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x28], edx
lea ebx, [eax + edi]
movzx edx, byte [ecx]
add eax, 1
add ecx, 1
mov byte [eax - 1], dl
cmp eax, ebx
jne 0x412f26
mov ebx, dword [esi]
mov edx, dword [ebp - 0x28]
cmp dword [ebx + 0x2c], 2
je 0x4130f0
mov eax, dword [ebx + 0xc]
sub eax, edi
cmp eax, 1
jne 0x412fba
mov dword [ebp - 0x28], edi
mov edi, edx
jmp 0x412f95
mov edx, dword [ebx + 0xc]
mov ecx, 2
test edx, edx
je 0x412f67
add edx, edx
lea ecx, [edx + 2]
mov dword [ebx + 0xc], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebx + 4], eax
test eax, eax
je 0x412fa8
mov ebx, dword [esi]
add edi, eax
mov ecx, dword [ebp - 0x28]
mov dword [0x41a180], edi
mov eax, dword [ebx + 0xc]
sub eax, ecx
cmp eax, 1
jne 0x412fb8
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0x14]
sub edi, eax
test ecx, ecx
jne 0x412f56
mov dword [ebx + 4], 0
mov eax, str.fatal_error___scanner_input_buffer_overflow
call dbg.yy_fatal_error
lea esi, [esi]
mov edi, ecx
mov edx, dword [0x41a16c]
xor ecx, ecx
mov eax, dword [edx]
cmp byte [eax], 0
setne cl
mov dword [0x41a184], ecx
je 0x41308a
lea ecx, [eax + 1]
mov ebx, dword [ebp - 0x34]
mov dword [ebp - 0x2c], 0
mov dword [edx], ecx
movzx edx, byte [eax]
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov byte [eax + ebx - 1], dl
mov eax, dword [esi]
mov dword [eax + 0x10], 1
mov eax, 1
lea ebx, [edi + eax]
mov edi, dword [esi]
mov edx, dword [edi + 4]
cmp dword [edi + 0xc], ebx
jb 0x41311b
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0x2c]
mov dword [0x41a184], ebx
mov byte [eax + ebx], 0
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov byte [eax + ebx + 1], 0
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
mov dword [0x41a154], eax
cmp edx, 1
je 0x413069
mov ecx, ebx
cmp edx, 2
je 0x413150
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
add ebx, eax
mov dword [0x41a180], ebx
call dbg.yy_get_previous_state
mov esi, eax
mov eax, dword [0x41a154]
mov dword [ebp - 0x24], eax
jmp 0x412a86
mov eax, dword [ebp - 0x28]
mov dword [0x41a180], eax
mov eax, dword [0x41a178]
lea edx, [eax - 1]
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
add eax, 0x10
jmp 0x412b67
mov dword [ebx + 0x10], 0
test edi, edi
jne 0x413101
mov eax, dword [0x41a160]
mov dword [esp], eax
call dbg.yyrestart
mov ecx, dword [0x41a194]
mov edx, dword [0x41a18c]
mov dword [ebp - 0x2c], 1
mov eax, dword [0x41a184]
lea esi, [edx + ecx*4]
jmp 0x412fff
mov dword [esp + 8], 0x4d
mov dword [esp + 4], str._private_tmp_game_porting_toolkit_20240316_16507_xzjwx8_wine_programs_winhlp32_macro.lex.l
mov dword [esp], str.lex_data__cache_used___ARRAY_SIZE_lex_data__cache_string_
call dword [sym.imp.ucrtbase.dll__assert]
mov ebx, dword [0x41a16c]
mov esi, dword [ebx + 0x10c]
jmp 0x412c32
mov dword [0x41a184], 0
mov dword [ebx + 0x10], 0
mov eax, dword [esi]
mov dword [ebp - 0x2c], 2
mov dword [eax + 0x2c], 2
mov eax, dword [0x41a184]
jmp 0x412fff
shr eax, 1
lea ecx, [eax + ebx]
mov dword [esp + 4], ecx
mov dword [ebp - 0x28], ecx
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_realloc]
mov ecx, dword [ebp - 0x28]
mov dword [edi + 4], eax
mov eax, dword [esi]
mov edx, dword [eax + 4]
test edx, edx
je 0x413244
sub ecx, 2
mov dword [eax + 0xc], ecx
mov edi, dword [esi]
jmp 0x413010
mov eax, dword [esi]
add ecx, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
jmp 0x412ddd
cmp dword [ebx + 0x2c], 2
jne 0x412f45
mov dword [0x41a184], 0
mov dword [ebx + 0x10], 0
jmp 0x413091
mov dword [0x41a178], 1
mov eax, dword [ebx + 4]
lea edx, [eax + 1]
mov dword [ebx + 4], edx
mov byte [eax], 0
mov eax, 4
jmp 0x412bc8
mov eax, str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call dbg.yy_fatal_error
lea esi, [esi]
nop
mov eax, str.fatal_flex_scanner_internal_error__no_action_found
call dbg.yy_fatal_error
mov eax, dword [ebp - 0x30]
mov ebx, edi
add ebx, eax
mov dword [0x41a180], ebx
call dbg.yy_get_previous_state
cmp word [eax + eax + 0x419240], 0
je 0x4131e2
mov dword [0x41a174], eax
mov dword [0x41a170], ebx
movsx ecx, word [eax + eax + 0x4190e0]
lea edx, [ecx + 1]
movsx ecx, word [ecx + ecx + 0x418f42]
cmp ecx, eax
je 0x413218
movsx eax, word [eax + eax + 0x419080]
movsx ecx, word [eax + eax + 0x4190e0]
lea edx, [ecx + 1]
movsx ecx, word [ecx + ecx + 0x418f42]
cmp eax, ecx
jne 0x4131f9
movsx eax, word [edx + edx + 0x418fe0]
mov esi, dword [0x41a154]
cmp eax, 0x1b
je 0x41322f
test eax, eax
jne 0x41324e
mov eax, dword [0x41a170]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x41a174]
mov dword [ebp - 0x20], eax
jmp 0x412b34
mov eax, str.out_of_dynamic_memory_in_yy_get_next_buffer__
call dbg.yy_fatal_error
mov dword [ebp - 0x24], esi
add ebx, 1
mov esi, eax
jmp 0x412a86