Function at 0x412e30
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 0x114
cmp dword [0x4a9a0c], 0
push esi
push edi
jne 0x4131fb
cmp dword [0x4afc48], 0
je 0x4131fb
cmp dword [0x492150], 0
jne 0x412fcd
cmp dword [0x488ce8], 0
jne 0x412fcd
push str.Macro.out
mov edx, 0x49ac20
lea ecx, [esp + 0x18]
call fcn.00446ec0
lea ecx, [esp + 0x18]
add esp, 4
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412e90
sub ecx, edx
mov dword [esp + 0xc], 0x208
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
lea eax, [esp + 0x18]
mov ecx, 0x488df0
push eax
lea edx, [esp + 0x14]
call fcn.004317d0
add esp, 8
test eax, eax
jne 0x412edb
mov eax, dword [esp + 0xc]
shr eax, 1
xor ecx, ecx
mov word [eax*2 + 0x488df0], cx
mov eax, 0x488df0
jmp 0x412ee0
mov eax, 0x479868
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x49b0c4], 0
je 0x412fc3
mov esi, dword [0x488ce0]
mov eax, 1
mov dword [0x4b0e1c], eax
mov cl, byte [esi]
test cl, cl
je 0x412f2a
mov edx, dword [0x4b3a40]
cmp cl, 1
jne 0x412f1d
cmp edx, esi
jbe 0x412f1a
inc eax
mov byte [esi], 0xa
mov cl, byte [esi + 1]
inc esi
test cl, cl
jne 0x412f10
mov dword [0x4b0e1c], eax
lea edx, [esp + 0x14]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x412f31
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x208
sub edx, edi
mov ecx, 0x488df0
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], edx
push eax
lea edx, [esp + 0x14]
call fcn.004317d0
add esp, 8
test eax, eax
jne 0x412f7c
mov eax, dword [esp + 0xc]
shr eax, 1
xor ecx, ecx
mov word [eax*2 + 0x488df0], cx
mov eax, 0x488df0
jmp 0x412f81
mov eax, 0x479868
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x412fc3
test edi, edi
je 0x412fc3
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x488ce0]
sub esi, eax
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x488ce8], 1
mov edx, dword [0x49214c]
mov esi, 1
cmp edx, esi
jl 0x412ffc
mov eax, dword [0x4b04a0]
cmp eax, dword [esi*4 + 0x4883b0]
jb 0x412ff7
cmp esi, edx
je 0x412ffe
cmp eax, dword [esi*4 + 0x4883b4]
jb 0x412ffe
inc esi
cmp esi, edx
jle 0x412fe1
xor esi, esi
mov edi, dword [0x4b106c]
cmp edi, 0xffffffff
jle 0x4130aa
mov eax, esi
sub eax, edx
add edi, eax
cmp dword [0x4a98f0], 0
mov dword [0x4b106c], edi
je 0x41305a
xor ecx, ecx
jmp 0x413030
mov al, byte [ecx + 0x4aa660]
lea ecx, [ecx + 1]
mov byte [ecx + 0x49b0df], al
test al, al
jne 0x413030
mov dword [0x485a74], edi
mov eax, 0xffffffff
mov dword [0x4a98dc], 0
jmp 0x4130bc
push 0x4b0e40
push edi
push 0x4aa660
push str.in_included_file__s_nLine__d____s
push 0x49b320
call fcn.00401560
add esp, 0x14
xor ecx, ecx
lea esp, [esp]
mov al, byte [ecx + 0x49b320]
lea ecx, [ecx + 1]
mov byte [ecx + 0x4b0e3f], al
test al, al
jne 0x413080
mov edx, dword [0x49214c]
mov eax, 0xffffffff
mov dword [0x4a98dc], 0
jmp 0x4130bc
cmp dword [0x4a98dc], 0
jne 0x4131f1
mov eax, dword [0x4a9ec4]
sub eax, edx
add eax, esi
cmp dword [0x4a98f0], 0
mov dword [0x4a9ec4], eax
je 0x4131b3
cmp byte [0x486cd2], 0
jne 0x4130f2
push 0x4b0e40
push str.ERROR_t_s
call fcn.0040abc0
add esp, 8
jmp 0x41318d
push eax
push str.ERROR_tSYNTAX_t_d_n
call fcn.0040abc0
push 0x4b0e40
push str.MESSAGE_t_s_n
call fcn.0040abc0
mov eax, dword [0x485a74]
add esp, 0x10
cmp eax, 0xffffffff
jle 0x41312c
push eax
push 0x49b0e0
push str.INCLUDEFILE_t_s_t_d_n
call fcn.0040abc0
add esp, 0xc
mov esi, dword [0x4b0e1c]
test esi, esi
je 0x413180
mov ecx, dword [0x488ce0]
mov edx, 1
mov al, byte [ecx]
test al, al
je 0x413154
cmp al, 0xa
jne 0x41314c
inc edx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x413147
push edx
push esi
push str.MACRO_t_d_t_d_n
call fcn.0040abc0
add esp, 0xc
push dword [0x488ce0]
push 0x46e054
call fcn.0040abc0
push str.MACRO_tCOMPLETE_n
call fcn.0040abc0
add esp, 0xc
push str.OUTPUT_tCOMPLETE_n
call fcn.0040abc0
add esp, 4
push 1
call fcn.0044ed5d
add esp, 4
push eax
call fcn.0044f0f1
add esp, 4
mov dword [0x4a9a0c], 1
pop edi
pop esi
add esp, 0x114
ret
push 0x4b0e40
cmp eax, 0xffffffff
jne 0x4131cc
push str.Error:__s_n
call fcn.0040abc0
add esp, 8
jmp 0x4131da
push eax
push str.Error:_Line__d____s_n
call fcn.0040abc0
add esp, 0xc
mov eax, dword [0x4b0e1c]
test eax, eax
je 0x4131f1
push eax
push str.at_line__d_of_the_expanded_macro__Macro.out__n
call fcn.0040abc0
add esp, 8
mov dword [0x4a9a0c], 1
pop edi
pop esi
add esp, 0x114
ret