Function at 0x412640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x41d17c]
mov esi, dword [0x41d178]
test eax, eax
je 0x4127a5
movzx eax, byte [0x41d188]
mov edi, dword [0x41d180]
movzx edx, word [esi + esi + 0x419200]
movzx ecx, word [esi + esi + 0x4190a0]
mov ebx, esi
mov esi, edi
mov dword [esp + 0x24], esi
mov byte [esi], al
movsx eax, cx
mov ecx, dword [0x41d170]
mov edi, dword [0x41d174]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
xor edi, edi
lea esi, [esi]
nop
test dx, dx
mov edx, dword [esp + 0x2c]
movzx ecx, byte [esi]
cmovne edx, ebx
movzx ecx, byte [ecx + 0x419100]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x28]
cmovne edx, esi
mov dword [esp + 0x28], edx
mov edx, 1
cmovne edi, edx
add eax, ecx
movsx edx, word [eax + eax + 0x418f00]
cmp ebx, edx
je 0x41271b
lea esi, [esi]
movsx ebx, word [ebx + ebx + 0x419040]
mov edx, ebx
cmp bx, 0x1b
jle 0x412707
movzx ecx, byte [ecx + 0x4190e4]
movsx eax, word [ebx + ebx + 0x4190a0]
add eax, ecx
cmp dx, word [eax + eax + 0x418f00]
jne 0x4126f0
movsx ebx, word [eax + eax + 0x418fa0]
add esi, 1
cmp ebx, 0x1b
je 0x412740
movzx edx, word [ebx + ebx + 0x419200]
movsx eax, word [ebx + ebx + 0x4190a0]
jmp 0x4126b0
mov eax, edi
test al, al
je 0x41279b
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [0x41d170], edi
mov dword [0x41d174], eax
mov esi, dword [esp + 0x24]
mov edx, edi
mov dword [esp + 0x2c], edi
mov dword [0x41d180], edi
movsx eax, word [eax + eax + 0x419200]
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.0x412794
jmp dword [eax*4 + 0x418c60]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
jmp 0x412759
mov dword [0x41d17c], 1
test esi, esi
jne 0x4127bd
mov dword [0x41d178], 1
mov eax, dword [0x41d160]
test eax, eax
je 0x412b0d
mov eax, dword [0x41d15c]
test eax, eax
je 0x412b24
mov eax, dword [0x41d18c]
test eax, eax
je 0x41282d
mov edx, dword [0x41d194]
lea edx, [eax + edx*4]
mov eax, dword [edx]
test eax, eax
je 0x41282d
mov edi, dword [eax + 8]
mov ecx, dword [eax + 0x10]
mov esi, dword [0x41d178]
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 0x41266c
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._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 sym._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 0x4127ef
mov ebx, dword [0x41d16c]
mov eax, dword [ebx + 0x88]
test eax, eax
jne 0x412c3d
mov esi, dword [ebx + 0x10c]
cmp esi, 0x1f
ja 0x412f40
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]
mov ecx, 0xd
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 ebx, 3
movzx eax, byte [0x41d188]
mov esi, dword [0x41d180]
jmp 0x412680
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 + 0x4190a0]
movzx edx, word [ebx + ebx + 0x419200]
mov ecx, eax
jmp 0x4128e6
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 0x412910
mov ebx, dword [0x41d178]
movzx eax, byte [0x41d188]
mov esi, dword [0x41d180]
movzx edi, word [ebx + ebx + 0x4190a0]
movzx edx, word [ebx + ebx + 0x419200]
mov ecx, edi
jmp 0x412680
mov eax, dword [0x41d154]
movsx eax, byte [eax]
lea esp, [ebp - 0xc]
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 + 0x4190a0]
movzx edx, word [ebx + ebx + 0x419200]
mov ecx, eax
jmp 0x4128e6
mov edi, dword [esp + 0x2c]
mov ebx, dword [0x41d184]
mov eax, edi
sub eax, dword [0x41d154]
sub eax, 1
mov dword [esp + 0x1c], eax
movzx eax, byte [0x41d188]
mov byte [edi], al
mov eax, dword [0x41d194]
mov edi, dword [0x41d18c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
lea edi, [edi + eax*4]
mov esi, dword [edi]
mov eax, dword [esi + 0x2c]
test eax, eax
jne 0x412a22
mov eax, dword [0x41d160]
mov ebx, dword [esi + 0x10]
mov dword [esi], eax
mov eax, dword [edi]
mov dword [0x41d184], ebx
mov dword [eax + 0x2c], 1
mov esi, dword [edi]
mov eax, dword [esi + 4]
mov ecx, dword [0x41d180]
mov edx, dword [0x41d154]
mov dword [esp + 0x28], eax
add eax, ebx
cmp ecx, eax
jbe 0x412eba
mov eax, dword [esp + 0x28]
lea eax, [eax + ebx + 1]
cmp ecx, eax
ja 0x412f6f
mov eax, ecx
mov ebx, dword [esi + 0x28]
sub eax, edx
mov dword [esp + 0x20], eax
test ebx, ebx
jne 0x412b3b
cmp eax, 1
je 0x412d85
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov edx, dword [eax + edi*4]
mov eax, dword [0x41d184]
add eax, dword [edx + 4]
mov dword [0x41d180], eax
mov edi, eax
call sym._yy_get_previous_state
mov esi, dword [0x41d154]
mov dword [esp + 0x24], esi
jmp 0x412759
mov edi, dword [esp + 0x2c]
movzx eax, byte [0x41d188]
mov byte [edi], al
mov edi, dword [0x41d170]
mov eax, dword [0x41d174]
jmp 0x412759
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
lea esp, [ebp - 0xc]
mov eax, 3
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x10
jmp 0x412abe
mov eax, dword [0x41d154]
mov dword [esp + 4], 0x41d140
mov dword [esp], eax
call sym._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 [0x41d160], eax
jmp 0x4127ca
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [0x41d15c], eax
jmp 0x4127d7
mov eax, dword [esp + 0x20]
lea ebx, [eax - 1]
test ebx, ebx
jle 0x412bb3
mov eax, dword [esp + 0x28]
lea esi, [edx + 1]
sub eax, esi
cmp eax, 0xe
jbe 0x412e5c
mov eax, dword [esp + 0x20]
sub eax, 2
cmp eax, 0xe
jbe 0x412e5c
mov eax, dword [esp + 0x28]
mov esi, ebx
and esi, 0xfffffff0
add esi, eax
mov dword [esp + 0x18], esi
mov esi, edx
movdqu xmm0, xmmword [esi]
add eax, 0x10
add esi, 0x10
movups xmmword [eax - 0x10], xmm0
cmp dword [esp + 0x18], eax
jne 0x412b79
mov eax, ebx
and eax, 0xfffffff0
test bl, 0xf
je 0x412bb1
mov dword [esp + 0x18], ecx
mov esi, dword [esp + 0x28]
movzx ecx, byte [edx + eax]
mov byte [esi + eax], cl
add eax, 1
cmp ebx, eax
jg 0x412b9f
mov ecx, dword [esp + 0x18]
mov esi, dword [edi]
cmp dword [esi + 0x2c], 2
je 0x412e04
mov eax, dword [esi + 0xc]
sub eax, ebx
cmp eax, 1
jg 0x412ccc
mov dword [esp + 0x28], edi
mov edi, ecx
jmp 0x412c12
mov eax, dword [esi + 0xc]
test eax, eax
jle 0x412c30
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 0x412c25
add edi, eax
mov eax, dword [esp + 0x28]
mov dword [0x41d180], edi
mov esi, dword [eax]
mov eax, dword [esi + 0xc]
sub eax, ebx
cmp eax, 1
jg 0x412cc8
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x14]
sub edi, edx
test ecx, ecx
jne 0x412bd3
mov dword [esi + 4], 0
mov eax, str.fatal_error___scanner_input_buffer_overflow
call sym._yy_fatal_error
nop
lea ecx, [eax + 7]
cmovns ecx, eax
sar ecx, 3
add eax, ecx
jmp 0x412bdc
mov edx, dword [0x41d154]
movzx ecx, byte [edx]
cmp cl, 0x22
je 0x412c6f
cmp cl, 0x60
je 0x412c79
lea ecx, [eax - 1]
mov dword [ebx + 0x88], ecx
test ecx, ecx
je 0x412e9a
mov eax, dword [ebx + 4]
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
jmp 0x41290d
cmp dword [ebx + eax*4 + 4], 0x22
lea ecx, [eax - 1]
je 0x412c53
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 0x412f79
mov ebx, dword [0x41d178]
movzx eax, word [ebx + ebx + 0x4190a0]
movzx edx, word [ebx + ebx + 0x419200]
mov ecx, eax
jmp 0x4128e6
mov edi, dword [esp + 0x28]
mov edx, dword [0x41d16c]
xor ecx, ecx
mov eax, dword [edx]
cmp byte [eax], 0
setne cl
mov dword [0x41d184], ecx
je 0x412da4
lea ecx, [eax + 1]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x28], 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 [edi]
add ebx, eax
mov edx, dword [esi + 4]
cmp ebx, dword [esi + 0xc]
jg 0x412dca
mov byte [edx + ebx], 0
mov eax, dword [edi]
mov dword [0x41d184], ebx
mov eax, dword [eax + 4]
mov byte [eax + ebx + 1], 0
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x28]
mov dword [0x41d154], edx
cmp eax, 1
je 0x412d85
cmp eax, 2
je 0x412e45
mov esi, dword [esp + 0x1c]
add esi, edx
mov dword [0x41d180], esi
call sym._yy_get_previous_state
mov ebx, eax
mov eax, dword [0x41d154]
mov dword [esp + 0x24], eax
movzx edx, word [ebx + ebx + 0x419200]
movsx eax, word [ebx + ebx + 0x4190a0]
jmp 0x412689
mov eax, dword [0x41d178]
mov dword [0x41d180], edx
lea edx, [eax - 1]
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
add eax, 0x10
jmp 0x41278b
mov dword [esi + 0x10], 0
test ebx, ebx
je 0x412e17
mov eax, dword [edi]
mov dword [esp + 0x28], 2
mov dword [eax + 0x2c], 2
mov eax, dword [0x41d184]
jmp 0x412d13
sar eax, 1
mov dword [esp], edx
lea ecx, [eax + ebx]
mov dword [esp + 4], ecx
mov dword [esp + 0x20], ecx
call dword [sym.imp.ucrtbase.dll_realloc]
mov ecx, dword [esp + 0x20]
mov dword [esi + 4], eax
mov eax, dword [edi]
mov edx, dword [eax + 4]
test edx, edx
je 0x412e7e
sub ecx, 2
mov dword [eax + 0xc], ecx
mov eax, dword [edi]
mov edx, dword [eax + 4]
jmp 0x412d23
mov dword [0x41d184], 0
mov dword [esi + 0x10], 0
jmp 0x412dab
mov eax, dword [0x41d160]
mov dword [esp], eax
call sym._yyrestart
mov edi, dword [0x41d194]
mov esi, dword [0x41d18c]
mov dword [esp + 0x28], 1
mov eax, dword [0x41d184]
lea edi, [esi + edi*4]
jmp 0x412d13
mov eax, dword [0x41d18c]
mov dword [esp + 0x14], eax
mov eax, dword [0x41d194]
mov dword [esp + 0x18], eax
jmp 0x412a6b
mov esi, dword [esp + 0x28]
lea eax, [esi + ebx]
mov dword [esp + 0x28], eax
movzx eax, byte [edx]
add esi, 1
add edx, 1
mov byte [esi - 1], al
cmp dword [esp + 0x28], esi
jne 0x412e67
jmp 0x412bb1
mov eax, str.out_of_dynamic_memory_in_yy_get_next_buffer__
call sym._yy_fatal_error
lea esi, [esi]
nop
mov eax, str.fatal_flex_scanner_internal_error__no_action_found
call sym._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 0x412825
mov esi, dword [esp + 0x1c]
add esi, edx
mov dword [0x41d180], esi
call sym._yy_get_previous_state
cmp word [eax + eax + 0x419200], 0
mov edx, eax
jne 0x412f60
mov edi, dword [0x41d170]
mov eax, dword [0x41d174]
jmp 0x412ef8
movsx edx, word [edx + edx + 0x419040]
movsx ebx, word [edx + edx + 0x4190a0]
lea ecx, [ebx + 1]
movsx ebx, word [ebx + ebx + 0x418f02]
cmp edx, ebx
jne 0x412ef0
movsx ebx, word [ecx + ecx + 0x418fa0]
mov ecx, dword [0x41d154]
mov dword [esp + 0x24], ecx
cmp ebx, 0x1b
je 0x412759
test ebx, ebx
je 0x412759
add esi, 1
mov dword [0x41d180], esi
jmp 0x412d70
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 0x412ef8
mov eax, str.fatal_flex_scanner_internal_error__end_of_buffer_missed
call sym._yy_fatal_error
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]
lea esi, [esi]