Function at 0x4120d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [0x41d17c]
test ebx, ebx
je 0x41222f
movzx eax, byte [0x41d188]
mov edi, dword [0x41d180]
mov esi, dword [0x41d178]
movzx ecx, word [esi + esi + 0x419060]
movzx edx, word [esi + esi + 0x4191c0]
mov ebx, esi
mov esi, edi
mov word [ebp - 0x1c], cx
mov byte [esi], al
movzx ecx, al
mov dword [ebp - 0x18], esi
mov eax, dword [0x41d170]
mov edi, dword [0x41d174]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
movsx eax, word [ebp - 0x1c]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], edi
xor edi, edi
lea esi, [esi]
nop
test dx, dx
mov edx, dword [ebp - 0x10]
movzx ecx, byte [ecx + 0x4190c0]
cmovne edx, ebx
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x14]
cmovne edx, esi
mov dword [ebp - 0x14], edx
mov edx, 1
cmovne edi, edx
add eax, ecx
movsx edx, word [eax + eax + 0x418ec0]
cmp ebx, edx
je 0x4121a3
lea esi, [esi]
movsx ebx, word [ebx + ebx + 0x419000]
mov edx, ebx
cmp bx, 0x1b
jle 0x41218f
movzx ecx, byte [ecx + 0x4190a4]
movsx eax, word [ebx + ebx + 0x419060]
add eax, ecx
cmp dx, word [eax + eax + 0x418ec0]
jne 0x412178
movsx ebx, word [eax + eax + 0x418f60]
add esi, 1
cmp ebx, 0x1b
je 0x4121d0
movzx ecx, byte [esi]
movzx edx, word [ebx + ebx + 0x4191c0]
movsx eax, word [ebx + ebx + 0x419060]
jmp 0x412140
mov eax, edi
test al, al
je 0x412227
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [0x41d170], edi
mov dword [0x41d174], eax
mov esi, dword [ebp - 0x18]
mov edx, edi
movsx eax, word [eax + eax + 0x4191c0]
mov dword [ebp - 0x10], edi
mov dword [0x41d180], edi
sub edx, esi
mov dword [0x41d154], esi
mov dword [0x41d164], edx
movzx edx, byte [edi]
mov byte [edi], 0
mov byte [0x41d188], dl
cmp eax, 0x11
ja case.default.0x412220
jmp dword [eax*4 + 0x418c1c]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
jmp 0x4121e7
mov ecx, dword [0x41d178]
mov dword [0x41d17c], 1
test ecx, ecx
jne 0x41224d
mov dword [0x41d178], 1
mov edx, dword [0x41d160]
test edx, edx
je 0x412597
mov eax, dword [0x41d15c]
test eax, eax
je 0x4125ae
mov eax, dword [0x41d18c]
test eax, eax
je 0x4122b8
mov edx, dword [0x41d194]
lea edx, [eax + edx*4]
mov eax, dword [edx]
test eax, eax
je 0x4122b8
mov edi, dword [eax + 8]
mov ecx, dword [eax + 0x10]
mov dword [0x41d154], edi
mov eax, dword [edx]
mov dword [0x41d184], ecx
mov eax, dword [eax]
mov dword [0x41d180], edi
mov dword [0x41d160], eax
movzx eax, byte [edi]
mov byte [0x41d188], al
jmp 0x4120f4
xor eax, eax
add esp, 0x2c
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 0x412280
mov ebx, dword [0x41d16c]
mov eax, dword [ebx + 0x88]
test eax, eax
jne 0x41267d
mov esi, dword [ebx + 0x10c]
cmp esi, 0x1f
ja 0x41292f
mov eax, dword [ebx]
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
add esi, 1
mov dword [ebx + 4], eax
mov dword [0x41d14c], eax
mov eax, dword [0x41d154]
mov dword [ebx + 0x10c], esi
movsx eax, byte [eax]
mov dword [ebx + 0x88], 1
mov dword [ebx + 8], eax
mov eax, 0xd
mov ebx, 3
mov word [ebp - 0x1c], ax
movzx eax, byte [0x41d188]
mov esi, dword [0x41d180]
jmp 0x412112
mov edx, dword [0x41d16c]
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 ebx, dword [0x41d178]
movzx eax, word [ebx + ebx + 0x419060]
movzx edx, word [ebx + ebx + 0x4191c0]
mov word [ebp - 0x1c], ax
jmp 0x412375
mov edx, dword [0x41d16c]
mov eax, dword [edx + 4]
lea ecx, [eax + 1]
mov dword [edx + 4], ecx
mov edx, dword [0x41d154]
movzx edx, byte [edx + 1]
jmp 0x41239f
mov ebx, dword [0x41d178]
movzx eax, byte [0x41d188]
mov esi, dword [0x41d180]
movzx edi, word [ebx + ebx + 0x419060]
movzx edx, word [ebx + ebx + 0x4191c0]
mov word [ebp - 0x1c], di
jmp 0x412112
mov eax, dword [0x41d154]
movsx eax, byte [eax]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x41d15c]
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 ebx, dword [0x41d178]
movzx eax, word [ebx + ebx + 0x419060]
movzx edx, word [ebx + ebx + 0x4191c0]
mov word [ebp - 0x1c], ax
jmp 0x412375
mov edi, dword [ebp - 0x10]
mov ecx, dword [0x41d184]
mov eax, edi
sub eax, dword [0x41d154]
sub eax, 1
mov dword [ebp - 0x20], eax
movzx eax, byte [0x41d188]
mov byte [edi], al
mov eax, dword [0x41d194]
mov edi, dword [0x41d18c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], edi
lea edi, [edi + eax*4]
mov ebx, dword [edi]
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x4124b3
mov eax, dword [0x41d160]
mov ecx, dword [ebx + 0x10]
mov dword [ebx], eax
mov eax, dword [edi]
mov dword [0x41d184], ecx
mov dword [eax + 0x2c], 1
mov ebx, dword [edi]
mov eax, dword [0x41d180]
mov edx, dword [ebx + 4]
mov esi, dword [0x41d154]
mov dword [ebp - 0x1c], eax
lea eax, [edx + ecx]
cmp dword [ebp - 0x1c], eax
jbe 0x4128b8
lea ecx, [edx + ecx + 1]
cmp dword [ebp - 0x1c], ecx
ja 0x412989
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x28]
sub ecx, esi
mov dword [ebp - 0x24], ecx
test eax, eax
jne 0x4125c5
cmp ecx, 1
je 0x4127c2
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov edx, dword [eax + edi*4]
mov eax, dword [0x41d184]
add eax, dword [edx + 4]
mov dword [0x41d180], eax
mov edi, eax
call dbg.yy_get_previous_state
mov esi, dword [0x41d154]
mov dword [ebp - 0x18], esi
jmp 0x4121e7
mov edi, dword [ebp - 0x10]
movzx eax, byte [0x41d188]
mov byte [edi], al
mov edi, dword [0x41d170]
mov eax, dword [0x41d174]
jmp 0x4121e7
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, 0x2c
mov eax, 3
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x10
jmp 0x412548
mov eax, dword [0x41d154]
mov dword [esp + 4], 0x41d140
mov dword [esp], eax
call dbg.MACRO_Lookup
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [0x41d160], eax
jmp 0x41225b
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [0x41d15c], eax
jmp 0x412268
mov eax, dword [ebp - 0x24]
lea ecx, [eax - 1]
mov dword [ebp - 0x14], ecx
test ecx, ecx
jle 0x4125ec
mov eax, dword [ebp - 0x1c]
add ecx, edx
movzx ebx, byte [esi]
add edx, 1
add esi, 1
mov byte [edx - 1], bl
cmp edx, ecx
jne 0x4125d7
mov dword [ebp - 0x1c], eax
mov ebx, dword [edi]
cmp dword [ebx + 0x2c], 2
je 0x412807
mov edx, dword [ebx + 0xc]
sub edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
cmp edx, 1
jle 0x41264c
jmp 0x41270a
mov eax, dword [ebx + 0xc]
test eax, eax
jle 0x412670
add eax, eax
mov dword [ebx + 0xc], eax
add eax, 2
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebx + 4], eax
test eax, eax
je 0x41265f
mov ebx, dword [edi]
add esi, eax
mov dword [0x41d180], esi
mov eax, dword [ebx + 0xc]
sub eax, dword [ebp - 0x14]
cmp eax, 1
jg 0x41270a
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 0x14]
sub esi, edx
test eax, eax
jne 0x412610
mov dword [ebx + 4], 0
mov eax, str.fatal_error___scanner_input_buffer_overflow
call dbg.yy_fatal_error
lea esi, [esi]
lea ecx, [eax + 7]
cmovns ecx, eax
sar ecx, 3
add eax, ecx
jmp 0x412619
mov edx, dword [0x41d154]
movzx ecx, byte [edx]
cmp cl, 0x22
je 0x4126af
cmp cl, 0x60
je 0x4126b9
lea ecx, [eax - 1]
mov dword [ebx + 0x88], ecx
test ecx, ecx
je 0x412969
mov eax, dword [ebx + 4]
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
jmp 0x41239c
cmp dword [ebx + eax*4 + 4], 0x22
lea ecx, [eax - 1]
je 0x412693
mov eax, dword [ebx + 4]
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
movzx edx, byte [edx]
mov byte [eax], dl
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 0x412898
mov ebx, dword [0x41d178]
movzx eax, word [ebx + ebx + 0x419060]
movzx edx, word [ebx + ebx + 0x4191c0]
mov word [ebp - 0x1c], ax
jmp 0x412375
mov edx, dword [0x41d16c]
xor ecx, ecx
mov eax, dword [edx]
cmp byte [eax], 0
setne cl
mov dword [0x41d184], ecx
je 0x4127e1
lea ecx, [eax + 1]
mov esi, dword [ebp - 0x24]
xor ebx, ebx
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 - 0x14]
mov edx, dword [edi]
add esi, eax
cmp esi, dword [edx + 0xc]
jg 0x41281a
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 esi, dword [eax + 4]
mov dword [0x41d154], esi
cmp ebx, 1
je 0x4127c2
cmp ebx, 2
je 0x412858
mov ecx, esi
mov esi, dword [ebp - 0x20]
add esi, ecx
mov dword [0x41d180], esi
call dbg.yy_get_previous_state
mov ebx, eax
mov eax, dword [0x41d154]
mov dword [ebp - 0x18], eax
movzx eax, word [ebx + ebx + 0x419060]
movzx ecx, byte [esi]
movzx edx, word [ebx + ebx + 0x4191c0]
mov word [ebp - 0x1c], ax
jmp 0x41211a
mov eax, dword [0x41d178]
mov dword [0x41d180], esi
lea edx, [eax - 1]
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
add eax, 0x10
jmp 0x412217
mov dword [ebx + 0x10], 0
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x41286d
mov eax, dword [edi]
mov ebx, 2
mov dword [eax + 0x2c], 2
mov eax, dword [0x41d184]
jmp 0x41274a
mov dword [0x41d184], 0
mov dword [ebx + 0x10], 0
jmp 0x4127e8
sar eax, 1
mov dword [ebp - 0x14], edx
lea ecx, [eax + esi]
mov dword [esp + 4], ecx
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], ecx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
mov dword [edx + 4], eax
mov eax, dword [edi]
mov edx, dword [eax + 4]
test edx, edx
je 0x412993
sub ecx, 2
mov dword [eax + 0xc], ecx
mov edx, dword [edi]
jmp 0x41275a
mov eax, dword [0x41d18c]
mov dword [ebp - 0x14], eax
mov eax, dword [0x41d194]
mov dword [ebp - 0x28], eax
jmp 0x4124f9
mov eax, dword [0x41d160]
mov ebx, 1
mov dword [esp], eax
call dbg.yyrestart
mov edi, dword [0x41d194]
mov esi, dword [0x41d18c]
mov eax, dword [0x41d184]
lea edi, [esi + edi*4]
jmp 0x41274a
mov dword [esp + 8], 0x55
mov dword [esp + 4], str.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]
add esi, dword [ebp - 0x20]
mov dword [0x41d180], esi
call dbg.yy_get_previous_state
cmp word [eax + eax + 0x4191c0], 0
mov edx, eax
jne 0x412950
mov edi, dword [0x41d170]
mov eax, dword [0x41d174]
jmp 0x4128e8
movsx edx, word [edx + edx + 0x419000]
movsx ebx, word [edx + edx + 0x419060]
lea ecx, [ebx + 1]
movsx ebx, word [ebx + ebx + 0x418ec2]
cmp edx, ebx
jne 0x4128e0
movsx ebx, word [ecx + ecx + 0x418f60]
mov ecx, dword [0x41d154]
mov dword [ebp - 0x18], ecx
cmp ebx, 0x1b
je 0x4121e7
test ebx, ebx
je 0x4121e7
add esi, 1
mov dword [0x41d180], esi
jmp 0x4127a6
mov dword [esp + 8], 0x4d
mov dword [esp + 4], str.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]
lea esi, [esi]
mov dword [0x41d174], eax
mov edi, esi
mov dword [0x41d170], esi
jmp 0x4128e8
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 0x4122b0
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]