Function at 0x424dd0
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 sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
add esp, 8
test eax, eax
je 0x424e4d
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 0x424e90
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00473ec0
add esp, 8
mov ebx, eax
jmp 0x424e92
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 fcn.00473ec0
add esp, 8
test al, al
jne 0x424ea2
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 fcn.00425d80
add esp, 0xc
xor ebx, ebx
jmp 0x4252f6
xor ebx, ebx
mov eax, esi
inc eax
cmp eax, 2
jae 0x424f83
test bl, bl
je 0x424e6a
call fcn.004256e0
mov ebx, dword [esp + 0x28]
mov eax, ebp
test al, al
je 0x424f72
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 0x424f97
cmp dword [0x506338], 0
je 0x424f97
test ecx, ecx
mov dword [esp + 0x10], ebx
je 0x42501d
mov esi, ecx
lea eax, [ecx + 1]
mov ecx, 0x20
nop dword [eax + eax]
mov ebx, ecx
add ecx, ecx
cmp eax, ebx
ja 0x424f10
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_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 sub.api_ms_win_crt_string_l1_1_0.dll_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 0x4250eb
test ebx, ebx
je 0x42502d
mov eax, edx
not eax
add eax, ebx
cmp eax, esi
jae 0x4250cb
mov dword [esp + 0x18], ebp
xor eax, eax
jmp 0x425038
mov eax, edi
movzx edx, al
mov ecx, ebx
call fcn.00423280
jmp 0x4252f4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x424e6a
jmp 0x424ea2
mov eax, esp
push dword [0x506340]
push ecx
push str.e_2Je_3Je__u__uH
push eax
call fcn.00472860
add esp, 0x10
mov esi, dword [esp + 4]
test ebx, ebx
je 0x425014
test ebp, ebp
je 0x425014
mov eax, dword [esp]
test eax, eax
je 0x424fcf
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, ebp
jae 0x425089
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 0x424ff0
test eax, eax
je 0x425092
push ebx
push dword [esp + 0xc]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov edi, eax
jmp 0x425182
mov edi, dword [esp + 8]
jmp 0x4251ac
mov esi, dword [0x506340]
xor edx, edx
test esi, esi
je 0x4250ef
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 0x425040
test al, al
je 0x425077
push ebp
mov dword [esp + 0x10], edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov edx, dword [esp + 0x10]
add esp, 4
mov ebx, eax
test edx, edx
je 0x4250bb
lea eax, [edx + 1]
push eax
push edi
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edx, dword [esp + 0x18]
add esp, 0xc
jmp 0x4250be
push ebp
push edi
mov edi, edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
mov edx, edi
add esp, 8
mov ebx, eax
jmp 0x4250be
mov edi, dword [esp + 8]
jmp 0x42518d
push ebx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov edi, eax
test esi, esi
je 0x42517f
lea eax, [esi + 1]
push eax
push dword [esp + 0xc]
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
jmp 0x425182
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 sub.api_ms_win_crt_string_l1_1_0.dll_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 0x42527b
test ebp, ebp
je 0x42527b
mov eax, dword [esp]
test eax, eax
je 0x425114
mov ecx, edx
not ecx
add ecx, eax
cmp ecx, ebp
jae 0x42525e
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 0x425130
test eax, eax
je 0x425151
push esi
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
mov ebx, eax
mov edx, dword [esp + 0xc]
jmp 0x425251
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov ebx, eax
mov edx, dword [esp + 0xc]
test edx, edx
je 0x42524e
lea eax, [edx + 1]
push eax
push edi
push ebx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov edx, dword [esp + 0x18]
add esp, 0xc
jmp 0x425251
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 sub.api_ms_win_crt_private_l1_1_0.dll_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 fcn.004742e0
add esp, 0x10
test eax, eax
je 0x425212
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 fcn.00425d80
add esp, 0xc
jmp 0x4252d6
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 sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
jmp 0x4252d6
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 sub.api_ms_win_crt_private_l1_1_0.dll_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 fcn.00472860
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 0x4252f4
mov dword [esp], 0
push edi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov bl, 1
cmp dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
je 0x425319
mov dword [esp + 0x20], 0
push dword [esp + 0x28]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret