Function at 0x4321d0
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x38
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x20], eax
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov eax, esp
push eax
call dbg.ffDetectCursor
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x43224d
add edi, 0x20
push dword [esp + 0x20]
push 0x4f3218
push 0
push edi
push 0
push str.Cursor
call dbg.ffPrintError
jmp 0x432609
mov esi, dword [esp + 4]
cmp esi, 7
jb 0x43230a
mov eax, dword [esp + 8]
add eax, esi
add eax, 0xfffffff9
push str.cursors
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
mov esi, dword [esp + 4]
test eax, eax
jne 0x43230a
cmp esi, 7
jb 0x43230a
cmp dword [esp], 0
je 0x43229c
add esi, 0xfffffff9
mov dword [esp + 4], esi
add esi, dword [esp + 8]
mov ebp, esi
jmp 0x432302
mov ebx, dword [esp + 8]
mov dword [esp], 0
mov dword [esp + 4], 0
mov eax, dword [0x5052b0]
mov dword [esp + 8], eax
test ebx, ebx
je 0x43252e
lea eax, [esi + 1]
mov ecx, 0x20
nop dword [eax + eax]
mov edi, ecx
add ecx, ecx
cmp eax, edi
ja 0x4322d0
push edi
call sym._malloc
add esp, 4
mov ebp, eax
mov byte [eax], 0
mov dword [esp + 8], eax
mov dword [esp], edi
push esi
push ebx
push eax
call sym._memcpy
add esp, 0xc
mov dword [esp + 4], esi
add ebp, esi
mov edi, dword [esp + 0x4c]
mov byte [ebp], 0
mov esi, dword [esp + 4]
cmp esi, 6
jb 0x4323ca
mov eax, dword [esp + 8]
add eax, esi
add eax, 0xfffffffa
push str.cursor
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4323c6
mov esi, dword [esp + 4]
cmp esi, 6
jb 0x4323ca
cmp dword [esp], 0
je 0x432355
add esi, 0xfffffffa
mov dword [esp + 4], esi
add esi, dword [esp + 8]
mov ebp, esi
jmp 0x4323c2
mov ebx, dword [esp + 8]
mov dword [esp], 0
mov dword [esp + 4], 0
mov eax, dword [0x5052b0]
mov dword [esp + 8], eax
test ebx, ebx
je 0x432563
lea eax, [esi + 1]
mov ecx, 0x20
nop word cs:[eax + eax]
mov edi, ecx
add ecx, ecx
cmp eax, edi
ja 0x432390
push edi
call sym._malloc
add esp, 4
mov ebp, eax
mov byte [eax], 0
mov dword [esp + 8], eax
mov dword [esp], edi
push esi
push ebx
push eax
call sym._memcpy
add esp, 0xc
mov dword [esp + 4], esi
add ebp, esi
mov edi, dword [esp + 0x4c]
mov byte [ebp], 0
mov esi, dword [esp + 4]
test esi, esi
je 0x43252e
mov ebx, dword [esp + 8]
cmp byte [esi + ebx - 1], 0x5f
jne 0x432483
inc esi
nop word cs:[eax + eax]
mov ebp, esi
lea eax, [esi - 2]
mov dword [esp + 4], eax
cmp esi, 2
je 0x432468
lea esi, [ebp - 1]
cmp byte [ebx + ebp - 3], 0x5f
je 0x4323f0
cmp dword [esp], 0
jne 0x432472
lea eax, [esi - 1]
mov dword [esp + 0x24], eax
mov dword [esp + 4], 0
mov eax, 0x20
nop word cs:[eax + eax]
mov edi, eax
add eax, eax
cmp esi, edi
ja 0x432430
push edi
call sym._malloc
add esp, 4
mov esi, eax
mov byte [eax], 0
mov dword [esp + 8], eax
mov dword [esp], edi
mov edi, dword [esp + 0x24]
push edi
push ebx
push eax
call sym._memcpy
add esp, 0xc
mov dword [esp + 4], edi
mov ebx, esi
mov edi, dword [esp + 0x4c]
jmp 0x432472
cmp dword [esp], 0
je 0x43254b
mov byte [ebx + ebp - 2], 0
mov esi, dword [esp + 4]
test esi, esi
je 0x43252e
mov ebp, dword [esp + 8]
cmp byte [esi + ebp - 1], 0x2d
jne 0x4325c8
inc esi
nop word cs:[eax + eax]
mov ebx, esi
lea eax, [esi - 2]
mov dword [esp + 4], eax
cmp esi, 2
je 0x432518
lea esi, [ebx - 1]
cmp byte [ebp + ebx - 3], 0x2d
je 0x4324a0
cmp dword [esp], 0
jne 0x43251e
lea eax, [esi - 1]
mov dword [esp + 0x24], eax
mov dword [esp + 4], 0
mov eax, 0x20
nop word cs:[eax + eax]
mov edi, eax
add eax, eax
cmp esi, edi
ja 0x4324e0
push edi
call sym._malloc
add esp, 4
mov esi, eax
mov byte [eax], 0
mov dword [esp + 8], eax
mov dword [esp], edi
mov edi, dword [esp + 0x24]
push edi
push ebp
push eax
call sym._memcpy
add esp, 0xc
mov dword [esp + 4], edi
mov ebp, esi
mov edi, dword [esp + 0x4c]
jmp 0x43251e
cmp dword [esp], 0
je 0x43254b
mov byte [ebp + ebx - 2], 0
cmp dword [esp + 4], 0
jne 0x4325c8
mov ecx, dword [esp]
test ecx, ecx
je 0x432563
cmp ecx, 8
jae 0x432543
xor eax, eax
cmp ecx, 2
jae 0x432570
jmp 0x432565
xor ecx, ecx
mov eax, dword [esp + 8]
jmp 0x4325a5
mov dword [esp], 0
mov dword [esp + 4], 0
mov eax, dword [0x5052b0]
mov dword [esp + 8], eax
mov al, 1
mov ecx, 0x20
nop word [eax + eax]
mov esi, ecx
add ecx, ecx
cmp esi, 8
jb 0x432570
test al, al
je 0x43258d
push esi
call sym._malloc
add esp, 4
mov byte [eax], 0
xor ecx, ecx
jmp 0x43259e
push esi
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov ecx, dword [esp + 4]
mov dword [esp + 8], eax
mov dword [esp], esi
mov dword [eax + ecx + 3], 0x746c7561
mov dword [eax + ecx], 0x61666564
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
lea edx, [eax + 7]
mov dword [esp + 4], edx
mov byte [ecx + eax + 7], 0
lea eax, [edi + 0x20]
cmp dword [edi + 0x3c], 0
je 0x43268d
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 7
mov edx, esp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 7
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x28]
push ecx
push 2
push 0
push eax
push 0
push str.Cursor
call dbg.ffPrintFormat
add esp, 0x18
cmp dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
je 0x43262f
mov dword [esp + 0x18], 0
push dword [esp + 0x20]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [esp + 0x20], eax
cmp dword [esp], 0
mov dword [esp + 4], 0
je 0x43265e
mov dword [esp], 0
push dword [esp + 8]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [esp + 8], eax
cmp dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
je 0x432685
mov dword [esp + 0xc], 0
push dword [esp + 0x14]
call sym._free
add esp, 4
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
push 0
push eax
push 0
push str.Cursor
call dbg.ffPrintLogoAndKey
add esp, 0x10
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push dword [esp + 8]
push 1
push dword [esp + 0x14]
call sym._fwrite
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x4326e9
mov esi, dword [esp + 0x14]
push 0x4f3232
push esi
call sym._strcmp
add esp, 8
test eax, eax
je 0x4326e9
sub esp, 8
mov dword [esp + 4], esi
call sym._printf_5
add esp, 8
push 0xa
call sym._putchar
add esp, 4
jmp 0x43260c