Function at 0x424d80
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov edi, ecx
mov ebp, edx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x28], eax
mov esi, dword [0x5062c0]
push 0x4f2298
push esi
call sym._strcmp
add esp, 8
test eax, eax
je 0x424dfd
sub esp, 0x1c
movaps xmm0, xmmword [0x4f2230]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp eax, 0xffffffff
je 0x424e40
lea eax, [esp + 0x20]
push eax
push esi
call dbg.ffAppendFDBuffer
add esp, 8
mov ebx, eax
jmp 0x424e42
push 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
add esp, 4
lea ecx, [esp + 0x20]
push ecx
push eax
call dbg.ffAppendFDBuffer
add esp, 8
test al, al
jne 0x424e52
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push dword [0x5062c0]
push str.Logo:_Failed_to_load_file_content_from_logo_source:__s__n
push eax
call dbg.fprintf
add esp, 0xc
xor ebx, ebx
jmp 0x4252a6
xor ebx, ebx
mov eax, esi
inc eax
cmp eax, 2
jae 0x424f33
test bl, bl
je 0x424e1a
call dbg.logoApplyColorsDetected
mov ebx, dword [esp + 0x28]
mov eax, ebp
test al, al
je 0x424f22
mov ebp, dword [esp + 0x24]
mov dword [esp], 0
mov dword [esp + 4], 0
mov edi, dword [0x5052b0]
mov dword [esp + 8], edi
cmp dword [0x506334], 0
mov ecx, dword [0x50633c]
je 0x424f47
cmp dword [0x506338], 0
je 0x424f47
test ecx, ecx
mov dword [esp + 0x10], ebx
je 0x424fcd
mov esi, ecx
lea eax, [ecx + 1]
mov ecx, 0x20
nop dword [eax + eax]
mov ebx, ecx
add ecx, ecx
cmp eax, ebx
ja 0x424ec0
push ebx
call sym._malloc
add esp, 4
mov edi, eax
mov byte [eax], 0
mov dword [esp + 8], eax
mov dword [esp], ebx
push esi
push 0xa
push eax
call sym._memset
mov edx, esi
add esp, 0xc
mov dword [esp + 4], esi
mov byte [edi + esi], 0
mov esi, dword [0x506340]
test esi, esi
je 0x42509b
test ebx, ebx
je 0x424fdd
mov eax, edx
not eax
add eax, ebx
cmp eax, esi
jae 0x42507b
mov dword [esp + 0x18], ebp
xor eax, eax
jmp 0x424fe8
mov eax, edi
movzx edx, al
mov ecx, ebx
call dbg.ffLogoPrintChars
jmp 0x4252a4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x424e1a
jmp 0x424e52
mov eax, esp
push dword [0x506340]
push ecx
push str.e_2Je_3Je__u__uH
push eax
call dbg.ffStrbufAppendF
add esp, 0x10
mov esi, dword [esp + 4]
test ebx, ebx
je 0x424fc4
test ebp, ebp
je 0x424fc4
mov eax, dword [esp]
test eax, eax
je 0x424f7f
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, ebp
jae 0x425039
mov dword [esp + 0x10], ebx
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
lea edx, [esi + ebp]
inc edx
nop word cs:[eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x424fa0
test eax, eax
je 0x425042
push ebx
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov edi, eax
jmp 0x425132
mov edi, dword [esp + 8]
jmp 0x42515c
mov esi, dword [0x506340]
xor edx, edx
test esi, esi
je 0x42509f
mov dword [esp + 0x18], ebp
mov ebx, 0x20
mov al, 1
lea ecx, [esi + edx]
inc ecx
nop dword [eax]
mov ebp, ebx
add ebx, ebx
cmp ecx, ebp
ja 0x424ff0
test al, al
je 0x425027
push ebp
mov dword [esp + 0x10], edx
call sym._malloc
mov edx, dword [esp + 0x10]
add esp, 4
mov ebx, eax
test edx, edx
je 0x42506b
lea eax, [edx + 1]
push eax
push edi
push ebx
call sym._memcpy
mov edx, dword [esp + 0x18]
add esp, 0xc
jmp 0x42506e
push ebp
push edi
mov edi, edx
call sym._realloc
mov edx, edi
add esp, 8
mov ebx, eax
jmp 0x42506e
mov edi, dword [esp + 8]
jmp 0x42513d
push ebx
call sym._malloc
add esp, 4
mov edi, eax
test esi, esi
je 0x42512f
lea eax, [esi + 1]
push eax
push dword [esp + 0xc]
push edi
call sym._memcpy
add esp, 0xc
jmp 0x425132
mov byte [ebx], 0
mov dword [esp + 8], ebx
mov dword [esp], ebp
mov edi, ebx
mov ebp, dword [esp + 0x18]
add edx, edi
push esi
push 0x20
push edx
call sym._memset
add esp, 0xc
add esi, dword [esp + 4]
mov dword [esp + 4], esi
mov edi, dword [esp + 8]
mov byte [edi + esi], 0
mov edx, esi
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x42522b
test ebp, ebp
je 0x42522b
mov eax, dword [esp]
test eax, eax
je 0x4250c4
mov ecx, edx
not ecx
add ecx, eax
cmp ecx, ebp
jae 0x42520e
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
mov dword [esp + 0xc], edx
add edx, ebp
inc edx
nop word cs:[eax + eax]
mov esi, ecx
add ecx, ecx
cmp edx, esi
ja 0x4250e0
test eax, eax
je 0x425101
push esi
push edi
call sym._realloc
add esp, 8
mov ebx, eax
mov edx, dword [esp + 0xc]
jmp 0x425201
push esi
call sym._malloc
add esp, 4
mov ebx, eax
mov edx, dword [esp + 0xc]
test edx, edx
je 0x4251fe
lea eax, [edx + 1]
push eax
push edi
push ebx
call sym._memcpy
mov edx, dword [esp + 0x18]
add esp, 0xc
jmp 0x425201
mov byte [edi], 0
mov dword [esp + 8], edi
mov dword [esp], ebx
mov ebx, dword [esp + 0x10]
add edi, esi
push ebp
push ebx
push edi
call sym._memcpy
add esp, 0xc
add ebp, dword [esp + 4]
mov dword [esp + 4], ebp
mov edi, dword [esp + 8]
mov byte [edi + ebp], 0
mov esi, ebp
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
add esp, 4
lea ebx, [esp + 0x1c]
push 0
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov word [esp + 0x1c], 0
mov word [esp + 0x16], 0
lea eax, [esp + 0x16]
push ebx
push eax
push str.e__hu__huR
push str.e_6n
call dbg.ffGetTerminalResponse
add esp, 0x10
test eax, eax
je 0x4251c2
mov esi, eax
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push esi
push str._nLogo__image_raw_:_fail_to_query_cursor_position:__s_n
push eax
call dbg.fprintf
add esp, 0xc
jmp 0x425286
movzx eax, word [esp + 0x1c]
add eax, dword [0x506344]
mov dword [0x507634], eax
movzx eax, word [esp + 0x16]
mov dword [0x507638], eax
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push eax
push 1
push 3
push 0x4f232a
call sym._fwrite
add esp, 0x10
jmp 0x425286
mov byte [ebx], 0
mov dword [esp + 8], ebx
mov dword [esp], esi
mov edi, ebx
mov ebx, dword [esp + 0x10]
add edi, edx
push ebp
push ebx
push edi
call sym._memcpy
add esp, 0xc
add ebp, dword [esp + 4]
mov dword [esp + 4], ebp
mov eax, dword [esp + 8]
mov byte [eax + ebp], 0
mov eax, dword [0x506338]
add eax, dword [0x50633c]
mov dword [0x507638], eax
mov ecx, dword [0x506334]
add ecx, dword [0x506340]
add ecx, dword [0x506344]
mov dword [0x507634], ecx
mov ecx, esp
push eax
push str._ne__uA
push ecx
call dbg.ffStrbufAppendF
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
add esp, 4
mov edi, dword [esp + 8]
lea ecx, [esp + 0x1c]
push 0
push ecx
push dword [esp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp], 0
mov dword [esp + 4], 0
je 0x4252a4
mov dword [esp], 0
push edi
call sym._free
add esp, 4
mov bl, 1
cmp dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
je 0x4252c9
mov dword [esp + 0x20], 0
push dword [esp + 0x28]
call sym._free
add esp, 4
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret