Function at 0x4123a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x41d17c]
test eax, eax
je 0x4124e6
mov esi, dword [0x41d180]
movzx eax, byte [0x41d188]
mov edi, dword [0x41d178]
movzx ecx, al
movzx ebx, word [edi + edi + 0x4190a0]
movzx edx, word [edi + edi + 0x419200]
movsx eax, bx
mov byte [esi], cl
mov dword [ebp - 0x24], esi
xor ebx, ebx
lea esi, [esi]
lea esi, [esi]
test dx, dx
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [ecx + 0x419100]
cmovne edx, edi
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x20]
cmovne edx, esi
mov dword [ebp - 0x20], edx
mov edx, 1
cmovne ebx, edx
add eax, ecx
movsx edx, word [eax + eax + 0x418f00]
cmp edi, edx
je 0x412453
lea esi, [esi]
movsx edi, word [edi + edi + 0x419040]
mov edx, edi
cmp di, 0x1b
jle 0x41243f
movzx ecx, byte [ecx + 0x4190e4]
movsx eax, word [edi + edi + 0x4190a0]
add eax, ecx
cmp dx, word [eax + eax + 0x418f00]
jne 0x412428
movsx edi, word [eax + eax + 0x418fa0]
add esi, 1
cmp edi, 0x1b
je 0x412480
movzx ecx, byte [esi]
movzx edx, word [edi + edi + 0x419200]
movsx eax, word [edi + edi + 0x4190a0]
jmp 0x4123f0
test bl, bl
je 0x4124d6
mov eax, dword [ebp - 0x1c]
mov dword [0x41d174], eax
mov eax, dword [ebp - 0x20]
mov dword [0x41d170], eax
mov ebx, eax
mov esi, dword [ebp - 0x24]
mov edx, ebx
mov eax, dword [ebp - 0x1c]
mov dword [0x41d180], ebx
sub edx, esi
mov dword [0x41d154], esi
movsx eax, word [eax + eax + 0x419200]
mov dword [0x41d164], edx
movzx edx, byte [ebx]
mov byte [ebx], 0
mov byte [0x41d188], dl
cmp eax, 0x11
ja case.default.0x4124cf
jmp dword [eax*4 + 0x418c68]
mov eax, dword [0x41d174]
mov ebx, dword [0x41d170]
mov dword [ebp - 0x1c], eax
jmp 0x412496
mov edi, dword [0x41d178]
mov dword [0x41d17c], 1
test edi, edi
jne 0x412504
mov dword [0x41d178], 1
mov esi, dword [0x41d160]
test esi, esi
je 0x412854
mov ebx, dword [0x41d15c]
test ebx, ebx
je 0x41286b
mov eax, dword [0x41d18c]
test eax, eax
je 0x412570
mov edx, dword [0x41d194]
lea edx, [eax + edx*4]
mov eax, dword [edx]
test eax, eax
je 0x412570
mov esi, dword [eax + 8]
mov ecx, dword [eax + 0x10]
mov dword [0x41d154], esi
mov eax, dword [edx]
mov dword [0x41d184], ecx
mov eax, dword [eax]
mov dword [0x41d180], esi
mov dword [0x41d160], eax
movzx eax, byte [esi]
mov byte [0x41d188], al
jmp 0x4123c3
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
call dbg.yyensure_buffer_stack
mov edx, dword [0x41d194]
mov eax, dword [0x41d18c]
mov dword [esp + 4], 0x4000
lea ebx, [eax + edx*4]
mov eax, dword [0x41d160]
mov dword [esp], eax
call dbg.yy_create_buffer
mov edx, dword [0x41d194]
mov dword [ebx], eax
mov eax, dword [0x41d18c]
lea edx, [eax + edx*4]
mov eax, dword [edx]
jmp 0x412538
mov dword [ebp - 0x20], ebx
mov ebx, dword [0x41d16c]
mov eax, dword [ebx + 0x88]
test eax, eax
jne 0x41295d
mov esi, dword [ebx + 0x10c]
cmp esi, 0x1f
ja 0x412c23
mov eax, dword [ebx]
mov edi, 3
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
add eax, 1
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
xor edx, edx
mov dword [0x41d178], 3
mov dword [ebx + esi*4 + 0x8c], eax
mov dword [ebx + 4], eax
mov dword [0x41d14c], eax
lea eax, [esi + 1]
mov dword [ebx + 0x10c], eax
mov eax, dword [0x41d154]
movsx eax, byte [eax]
mov dword [ebx + 0x88], 1
mov dword [ebx + 8], eax
mov eax, 0xd
mov esi, dword [0x41d180]
movzx ecx, byte [0x41d188]
jmp 0x4123df
mov edx, dword [0x41d16c]
mov dword [ebp - 0x20], ebx
mov eax, dword [edx + 4]
lea ecx, [eax + 1]
mov dword [edx + 4], ecx
mov edx, dword [0x41d154]
movzx edx, byte [edx]
mov byte [eax], dl
mov edi, dword [0x41d178]
movzx edx, word [edi + edi + 0x419200]
movsx eax, word [edi + edi + 0x4190a0]
jmp 0x41262c
mov edx, dword [0x41d16c]
mov dword [ebp - 0x20], ebx
mov eax, dword [edx + 4]
lea ecx, [eax + 1]
mov dword [edx + 4], ecx
mov edx, dword [0x41d154]
movzx edx, byte [edx + 1]
mov byte [eax], dl
mov edi, dword [0x41d178]
movzx edx, word [edi + edi + 0x419200]
movsx eax, word [edi + edi + 0x4190a0]
jmp 0x41262c
mov edi, dword [0x41d178]
mov dword [ebp - 0x20], ebx
movzx ecx, byte [0x41d188]
mov esi, dword [0x41d180]
movzx edx, word [edi + edi + 0x419200]
movsx eax, word [edi + edi + 0x4190a0]
jmp 0x4123df
mov eax, dword [0x41d154]
movsx eax, byte [eax]
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x41d15c]
mov dword [ebp - 0x20], ebx
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [0x41d164]
mov dword [esp + 4], eax
mov eax, dword [0x41d154]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
mov edi, dword [0x41d178]
movzx edx, word [edi + edi + 0x419200]
movsx eax, word [edi + edi + 0x4190a0]
jmp 0x41262c
mov eax, ebx
sub eax, dword [0x41d154]
mov esi, dword [0x41d18c]
sub eax, 1
mov dword [ebp - 0x30], eax
movzx eax, byte [0x41d188]
mov dword [ebp - 0x38], esi
mov byte [ebx], al
mov eax, dword [0x41d194]
lea edi, [esi + eax*4]
mov dword [ebp - 0x20], eax
mov esi, dword [edi]
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x41293d
mov ecx, dword [0x41d184]
mov edx, dword [esi + 4]
mov eax, dword [0x41d180]
mov dword [ebp - 0x2c], edx
mov edx, dword [0x41d154]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x2c]
add edx, ecx
cmp eax, edx
jbe 0x412ba8
mov edx, dword [ebp - 0x2c]
lea ecx, [edx + ecx + 1]
cmp eax, ecx
ja 0x412c82
mov edx, dword [esi + 0x28]
mov ecx, eax
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0x34], ecx
test edx, edx
jne 0x412882
cmp ecx, 1
je 0x412aae
mov eax, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x20]
mov edx, dword [eax + ebx*4]
mov eax, dword [0x41d184]
add eax, dword [edx + 4]
mov dword [0x41d180], eax
mov ebx, eax
call dbg.yy_get_previous_state
mov dword [ebp - 0x1c], eax
mov eax, dword [0x41d154]
mov dword [ebp - 0x24], eax
jmp 0x412496
movzx eax, byte [0x41d188]
mov byte [ebx], al
mov eax, dword [0x41d174]
mov ebx, dword [0x41d170]
mov dword [ebp - 0x1c], eax
jmp 0x412496
mov eax, dword [0x41d154]
mov dword [esp + 4], 0x41d140
mov dword [esp], eax
call dbg.MACRO_Lookup
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0xa
mov eax, dword [0x41d154]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strtol]
mov dword [0x41d148], eax
add esp, 0x3c
mov eax, 3
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x10
jmp 0x412822
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [0x41d160], eax
jmp 0x412512
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [0x41d15c], eax
jmp 0x412520
mov ecx, dword [ebp - 0x34]
sub ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, ecx
test ecx, ecx
jle 0x4128b3
mov esi, edx
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
add esi, edx
movzx eax, byte [ecx]
add edx, 1
add ecx, 1
mov byte [edx - 1], al
cmp edx, esi
jne 0x41289e
mov eax, dword [ebp - 0x28]
mov esi, dword [edi]
cmp dword [esi + 0x2c], 2
je 0x412af7
mov edx, dword [esi + 0xc]
sub edx, dword [ebp - 0x20]
cmp edx, 1
jg 0x4129e9
mov dword [ebp - 0x28], ebx
jmp 0x41290c
mov eax, dword [esi + 0xc]
test eax, eax
jle 0x412930
add eax, eax
mov dword [esi + 0xc], eax
add eax, 2
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [esi + 4], eax
test eax, eax
je 0x412921
mov esi, dword [edi]
add eax, ebx
mov dword [0x41d180], eax
mov edx, dword [esi + 0xc]
sub edx, dword [ebp - 0x20]
cmp edx, 1
jg 0x4129e6
mov edx, dword [esi + 4]
sub eax, edx
mov ebx, eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x4128d1
mov dword [esi + 4], 0
mov eax, str.fatal_error___scanner_input_buffer_overflow
call dbg.yy_fatal_error
lea esi, [esi]
nop
lea ecx, [eax + 7]
cmovns ecx, eax
sar ecx, 3
add eax, ecx
jmp 0x4128da
mov eax, dword [0x41d160]
mov ecx, dword [esi + 0x10]
mov dword [esi], eax
mov eax, dword [edi]
mov dword [0x41d184], ecx
mov dword [eax + 0x2c], 1
mov esi, dword [edi]
jmp 0x412768
mov edx, dword [0x41d154]
movzx ecx, byte [edx]
cmp cl, 0x22
je 0x41298f
cmp cl, 0x60
je 0x412999
lea ecx, [eax - 1]
mov dword [ebx + 0x88], ecx
test ecx, ecx
je 0x412c62
mov eax, dword [ebx + 4]
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
jmp 0x412656
cmp dword [ebx + eax*4 + 4], 0x22
lea ecx, [eax - 1]
je 0x412973
mov ecx, dword [ebx + 4]
lea eax, [ecx + 1]
mov dword [ebx + 4], eax
movzx eax, byte [edx]
mov byte [ecx], al
mov eax, dword [0x41d154]
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
ja 0x412b86
mov edi, dword [0x41d178]
movzx edx, word [edi + edi + 0x419200]
movsx eax, word [edi + edi + 0x4190a0]
jmp 0x41262c
mov ebx, dword [ebp - 0x28]
mov edx, dword [0x41d16c]
xor ecx, ecx
mov eax, dword [edx]
cmp byte [eax], 0
setne cl
mov dword [0x41d184], ecx
je 0x412acf
lea ecx, [eax + 1]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x2c], 0
mov dword [edx], ecx
movzx edx, byte [eax]
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov byte [eax + esi - 1], dl
mov eax, dword [edi]
mov dword [eax + 0x10], 1
mov eax, 1
mov esi, dword [ebp - 0x20]
mov edx, dword [edi]
add esi, eax
mov ecx, dword [edx + 4]
cmp esi, dword [edx + 0xc]
jg 0x412b0a
mov eax, dword [edx + 4]
mov dword [0x41d184], esi
mov byte [eax + esi], 0
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov byte [eax + esi + 1], 0
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
mov dword [0x41d154], eax
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x412aae
cmp eax, 2
je 0x412b44
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x20], ebx
add esi, ecx
mov dword [0x41d180], esi
call dbg.yy_get_previous_state
mov edi, eax
mov eax, dword [0x41d154]
mov dword [ebp - 0x24], eax
movzx ecx, byte [esi]
movzx edx, word [edi + edi + 0x419200]
movsx eax, word [edi + edi + 0x4190a0]
jmp 0x4123e4
mov eax, dword [ebp - 0x28]
mov dword [0x41d180], eax
mov eax, dword [0x41d178]
lea edx, [eax - 1]
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
add eax, 0x10
jmp 0x4124c6
mov dword [esi + 0x10], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x412b59
mov eax, dword [edi]
mov dword [ebp - 0x2c], 2
mov dword [eax + 0x2c], 2
mov eax, dword [0x41d184]
jmp 0x412a2e
mov dword [0x41d184], 0
mov dword [esi + 0x10], 0
jmp 0x412ad6
sar eax, 1
mov dword [ebp - 0x28], edx
add eax, esi
mov dword [esp], ecx
mov dword [ebp - 0x20], eax
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [ebp - 0x28]
mov dword [edx + 4], eax
mov eax, dword [edi]
mov edx, dword [eax + 4]
test edx, edx
je 0x412c8c
mov edx, dword [ebp - 0x20]
sub edx, 2
mov dword [eax + 0xc], edx
mov edx, dword [edi]
jmp 0x412a41
mov eax, dword [0x41d18c]
mov dword [ebp - 0x38], eax
mov eax, dword [0x41d194]
mov dword [ebp - 0x20], eax
jmp 0x4127b4
mov eax, dword [0x41d160]
mov dword [esp], eax
call dbg.yyrestart
mov esi, dword [0x41d194]
mov ecx, dword [0x41d18c]
mov dword [ebp - 0x2c], 1
mov eax, dword [0x41d184]
lea edi, [ecx + esi*4]
jmp 0x412a2e
mov dword [esp + 8], 0x55
mov dword [esp + 4], str._home_ubuntu_buildbot_runners_wine_wine_src_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]
lea esi, [esi]
nop
mov esi, dword [ebp - 0x28]
add esi, dword [ebp - 0x30]
mov dword [0x41d180], esi
call dbg.yy_get_previous_state
cmp word [eax + eax + 0x419200], 0
je 0x412be0
mov dword [0x41d174], eax
mov dword [0x41d170], esi
jmp 0x412be0
movsx eax, word [eax + eax + 0x419040]
movsx ecx, word [eax + eax + 0x4190a0]
lea edx, [ecx + 1]
movsx ecx, word [ecx + ecx + 0x418f02]
cmp eax, ecx
jne 0x412bd8
mov eax, dword [0x41d154]
movsx edi, word [edx + edx + 0x418fa0]
mov dword [ebp - 0x24], eax
cmp edi, 0x1b
je 0x412c10
test edi, edi
jne 0x412c40
mov eax, dword [0x41d174]
mov ebx, dword [0x41d170]
mov dword [ebp - 0x1c], eax
jmp 0x412496
mov dword [esp + 8], 0x4d
mov dword [esp + 4], str._home_ubuntu_buildbot_runners_wine_wine_src_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]
add esi, 1
mov dword [ebp - 0x20], ebx
mov dword [0x41d180], esi
jmp 0x412a96
mov eax, str.fatal_flex_scanner_internal_error__no_action_found
call dbg.yy_fatal_error
mov dword [0x41d178], 1
mov eax, dword [ebx + 4]
lea edx, [eax + 1]
mov dword [ebx + 4], edx
mov byte [eax], 0
mov eax, 4
jmp 0x412568
mov eax, str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call dbg.yy_fatal_error
mov eax, str.out_of_dynamic_memory_in_yy_get_next_buffer__
call dbg.yy_fatal_error
lea esi, [esi]
lea esi, [esi]