Function at 0x45bd90
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov esi, dword [esp + 0x5c]
mov eax, dword [0x505d2c]
test eax, eax
je 0x45bdd6
cmp dword [0x505d28], 0
jne 0x45bec6
mov ebp, dword [0x505d48]
mov dword [esp + 4], ebp
test ebp, ebp
je 0x45bee6
push ebp
call sym._malloc
add esp, 4
mov esi, eax
mov byte [eax], 0
jmp 0x45beec
mov eax, dword [0x5052b0]
mov dword [0x505d30], 0
mov dword [0x505d34], 0
mov dword [0x505d38], eax
mov dword [0x505d3c], 0
mov dword [0x505d40], 0
mov dword [0x505d44], eax
mov dword [0x505d48], 0
mov dword [0x505d4c], 0
mov dword [0x505d50], eax
mov dword [0x505d54], 0
mov dword [0x505d58], 0
mov dword [0x505d5c], eax
mov dword [0x505d60], 0
mov dword [0x505d64], 0
mov dword [0x505d68], eax
mov dword [0x505d6c], 0
mov dword [0x505d70], 0
mov dword [0x505d74], eax
mov dword [0x505d78], 0
mov dword [0x505d7c], 0
mov dword [0x505d80], eax
push 0x20
call sym._malloc
add esp, 4
mov dword [0x505d2c], eax
mov dword [0x505d24], 0x20
movups xmm0, xmmword [0x4fa816]
movups xmmword [eax + 0xe], xmm0
movups xmm0, xmmword [0x4fa808]
movups xmmword [eax], xmm0
mov dword [0x505d28], 0x1e
mov byte [eax + 0x1e], 0
add esi, 0x20
push eax
push 0x4f640a
push 0
push esi
push 0
push str.Media
call dbg.ffPrintError
add esp, 0x60
jmp 0x45c557
mov esi, dword [0x5052b0]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov edi, dword [0x505d4c]
test edi, edi
je 0x45bf7f
mov edx, dword [0x505d50]
test edx, edx
je 0x45bf7f
mov eax, ebp
sub eax, 1
jb 0x45bf17
cmp eax, edi
jae 0x45bf68
cmp ebp, 2
mov eax, 0x20
cmovae eax, ebp
lea ecx, [edi + 1]
nop word cs:[eax + eax]
mov ebx, eax
add eax, eax
cmp ecx, ebx
ja 0x45bf30
test ebp, ebp
je 0x45bf4e
push ebx
push esi
mov esi, edx
call sym._realloc
mov edx, esi
add esp, 8
mov esi, eax
jmp 0x45bf60
push ebx
mov esi, edx
call sym._malloc
mov edx, esi
add esp, 4
mov esi, eax
mov byte [eax], 0
mov dword [esp + 0xc], esi
mov dword [esp + 4], ebx
push edi
push edx
push esi
call sym._memcpy
add esp, 0xc
mov dword [esp + 8], edi
mov byte [esi + edi], 0
mov esi, dword [esp + 0xc]
xor eax, eax
jmp 0x45bf9a
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x1b
je 0x45bff2
mov dword [esp + 0x10], eax
mov ebp, dword [eax*4 + 0x4f65c0]
push ebp
call sym._strlen
add esp, 4
mov edi, eax
push ebp
push esi
nop word cs:[eax + eax]
call sym._strstr
add esp, 8
test eax, eax
je 0x45bf90
mov ebx, eax
sub ebx, esi
cmp ebx, dword [esp + 8]
jae 0x45bf90
lea eax, [ebx + edi]
push eax
push ebx
lea eax, [esp + 0xc]
push eax
call dbg.ffStrbufRemoveSubstr
add esp, 0xc
mov esi, dword [esp + 0xc]
add ebx, esi
push ebp
push ebx
jmp 0x45bfc0
mov eax, dword [esp + 8]
test eax, eax
je 0x45c0a7
cmp byte [eax + esi - 1], 0x20
jne 0x45c126
inc eax
nop word [eax + eax]
mov ebx, eax
add eax, 0xfffffffe
mov dword [esp + 8], eax
cmp ebx, 2
je 0x45c075
lea eax, [ebx - 1]
cmp byte [esi + ebx - 3], 0x20
je 0x45c010
cmp dword [esp + 4], 0
jne 0x45c07c
lea ecx, [eax - 1]
mov dword [esp + 0x10], ecx
mov ecx, 0x20
nop dword [eax + eax]
mov ebp, ecx
add ecx, ecx
cmp eax, ebp
ja 0x45c040
push ebp
call sym._malloc
add esp, 4
mov edi, eax
mov byte [eax], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x10]
push ebp
push esi
push eax
call sym._memcpy
add esp, 0xc
mov dword [esp + 8], ebp
mov esi, edi
jmp 0x45c07c
cmp dword [esp + 4], 0
je 0x45c08e
mov byte [esi + ebx - 2], 0
cmp dword [esp + 8], 0
jne 0x45c126
jmp 0x45c0a7
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0xc], eax
mov edi, dword [0x505d4c]
test edi, edi
je 0x45c126
mov ebx, dword [0x505d50]
test ebx, ebx
je 0x45c126
mov eax, dword [esp + 4]
mov ecx, eax
sub ecx, 1
jb 0x45c0d0
cmp ecx, edi
jb 0x45c0d0
mov esi, dword [esp + 0xc]
jmp 0x45c113
cmp eax, 2
mov ecx, 0x20
cmovae ecx, eax
lea edx, [edi + 1]
nop
mov ebp, ecx
add ecx, ecx
cmp edx, ebp
ja 0x45c0e0
test eax, eax
je 0x45c0fd
push ebp
push dword [esp + 0x10]
call sym._realloc
add esp, 8
mov esi, eax
jmp 0x45c10b
push ebp
call sym._malloc
add esp, 4
mov esi, eax
mov byte [eax], 0
mov dword [esp + 0xc], esi
mov dword [esp + 4], ebp
push edi
push ebx
push esi
call sym._memcpy
add esp, 0xc
mov dword [esp + 8], edi
mov byte [esi + edi], 0
mov eax, dword [esp + 0x5c]
lea esi, [eax + 0x20]
cmp dword [eax + 0x3c], 0
je 0x45c1a1
mov dword [esp + 0x20], 7
lea eax, [esp + 4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x2c], 0x505d48
mov dword [esp + 0x30], 7
mov dword [esp + 0x34], 0x505d54
mov dword [esp + 0x38], 7
mov dword [esp + 0x3c], 0x505d60
mov dword [esp + 0x40], 7
mov dword [esp + 0x44], 0x505d78
lea eax, [esp + 0x20]
push eax
push 5
push 0
push esi
push 0
push str.Media
call dbg.ffPrintFormat
add esp, 0x18
jmp 0x45c531
mov ebx, dword [0x505d54]
test ebx, ebx
mov dword [esp + 0x1c], esi
je 0x45c1e5
push ebx
call sym._malloc
add esp, 4
mov ebp, eax
mov byte [eax], 0
mov edi, dword [0x505d58]
mov dword [esp + 0x14], 0
test edi, edi
je 0x45c24d
mov esi, dword [0x505d5c]
test esi, esi
je 0x45c24d
lea eax, [ebx - 1]
cmp eax, edi
jb 0x45c216
mov dword [esp], ebx
jmp 0x45c263
mov ebp, dword [0x5052b0]
mov edi, dword [0x505d58]
mov dword [esp + 0x14], 0
test edi, edi
je 0x45c3b5
mov esi, dword [0x505d5c]
mov dword [esp], 0
test esi, esi
je 0x45c3bc
cmp ebx, 2
mov eax, 0x20
cmovae eax, ebx
lea ecx, [edi + 1]
nop word cs:[eax + eax]
mov edx, eax
add eax, eax
cmp ecx, edx
ja 0x45c230
test ebx, ebx
mov dword [esp], edx
je 0x45c255
push edx
push ebp
call sym._realloc
add esp, 8
mov ebp, eax
jmp 0x45c263
mov dword [esp], ebx
jmp 0x45c3bc
push edx
call sym._malloc
add esp, 4
mov ebp, eax
mov byte [eax], 0
push edi
push esi
push ebp
call sym._memcpy
add esp, 0xc
mov byte [ebp + edi], 0
cmp edi, 8
jb 0x45c2d1
lea esi, [edi + ebp]
add esi, 0xfffffff8
push str.___Topic
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x45c2d6
cmp dword [esp], 0
je 0x45c29c
add edi, 0xfffffff8
jmp 0x45c2ce
lea eax, [edi + 1]
mov ecx, 0x20
mov edx, ecx
add ecx, ecx
cmp eax, edx
ja 0x45c2a4
mov dword [esp], edx
push edx
call sym._malloc
add esp, 4
mov ebx, eax
mov byte [eax], 0
push edi
push ebp
push eax
call sym._memcpy
add esp, 0xc
mov esi, ebx
add esi, edi
mov ebp, ebx
mov byte [esi], 0
cmp edi, 4
jb 0x45c32f
lea esi, [edi + ebp]
add esi, 0xfffffffc
push str.VEVO
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x45c333
cmp dword [esp], 0
je 0x45c2fa
add edi, 0xfffffffc
jmp 0x45c32c
lea eax, [edi + 1]
mov ecx, 0x20
mov edx, ecx
add ecx, ecx
cmp eax, edx
ja 0x45c302
mov dword [esp], edx
push edx
call sym._malloc
add esp, 4
mov ebx, eax
mov byte [eax], 0
push edi
push ebp
push eax
call sym._memcpy
add esp, 0xc
mov esi, ebx
add esi, edi
mov ebp, ebx
mov byte [esi], 0
test edi, edi
je 0x45c38b
cmp byte [edi + ebp - 1], 0x20
jne 0x45c385
inc edi
mov eax, dword [esp]
nop
mov ebx, edi
cmp edi, 2
je 0x45c395
lea edi, [ebx - 1]
cmp byte [ebp + ebx - 3], 0x20
je 0x45c340
test eax, eax
jne 0x45c399
lea esi, [edi - 1]
mov eax, 0x20
mov ecx, eax
add eax, eax
cmp edi, ecx
ja 0x45c35d
mov dword [esp], ecx
push ecx
call sym._malloc
add esp, 4
mov edi, eax
mov byte [eax], 0
push esi
push ebp
push eax
call sym._memcpy
add esp, 0xc
mov ebp, edi
jmp 0x45c399
mov dword [esp + 0x14], edi
jmp 0x45c3bc
mov dword [esp + 0x14], 0
jmp 0x45c3bc
test eax, eax
je 0x45c3a7
mov byte [ebp + ebx - 2], 0
add ebx, 0xfffffffe
mov dword [esp + 0x14], ebx
jmp 0x45c3bc
mov dword [esp + 0x14], 0
mov ebp, dword [0x5052b0]
mov dword [esp], 0
mov dword [esp + 0x10], ebp
xor edi, edi
mov ebp, dword [esp + 0xc]
xor esi, esi
nop dword [eax + eax]
movsx ebx, byte [ebp + esi]
push ebx
call dbg.isblank
add esp, 4
mov ecx, ebx
add cl, 0xd3
inc esi
cmp cl, 2
jb 0x45c3d0
test eax, eax
jne 0x45c3d0
mov dword [esp + 0x18], ebx
nop word cs:[eax + eax]
mov eax, dword [esp + 0x10]
movsx ebx, byte [eax + edi]
push ebx
call dbg.isblank
add esp, 4
mov ecx, ebx
add cl, 0xd3
inc edi
cmp cl, 2
jb 0x45c400
test eax, eax
jne 0x45c400
cmp byte [esp + 0x18], 0
je 0x45c44e
test bl, bl
je 0x45c44e
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
add esp, 4
mov dword [esp + 0x18], eax
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
add esp, 4
cmp dword [esp + 0x18], eax
je 0x45c3d0
jmp 0x45c452
test bl, bl
je 0x45c4ab
push 0
push dword [esp + 0x20]
push 0
push str.Media
call dbg.ffPrintLogoAndKey
add esp, 0x10
mov edi, dword [esp + 0x14]
test edi, edi
je 0x45c4a5
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 1
call esi
add esp, 4
push eax
push edi
push 1
mov ebx, dword [esp + 0x1c]
push ebx
call sym._fwrite
add esp, 0x10
push 1
call esi
add esp, 4
push eax
push 1
push 3
push 0x4f663a
call sym._fwrite
jmp 0x45c4d3
mov ebx, dword [esp + 0x10]
jmp 0x45c4d6
cmp dword [esp], 0
je 0x45c4ba
mov ebx, dword [esp + 0x10]
mov byte [ebx], 0
jmp 0x45c4c0
mov ebx, dword [0x5052b0]
mov eax, dword [esp + 0x1c]
push 0
push eax
push 0
push str.Media
call dbg.ffPrintLogoAndKey
add esp, 0x10
cmp dword [0x505d7c], 0
je 0x45c4f7
push dword [0x505d80]
push str.___s_
lea eax, [esp + 0xc]
push eax
call dbg.ffStrbufAppendF
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov edi, eax
push eax
push dword [esp + 0xc]
push 1
push dword [esp + 0x18]
call sym._fwrite
add esp, 0x10
push edi
push 0xa
call sym._fputc
add esp, 8
cmp dword [esp], 0
je 0x45c531
push ebx
call sym._free
add esp, 4
cmp dword [esp + 4], 0
mov dword [esp + 8], 0
je 0x45c554
mov dword [esp + 4], 0
push dword [esp + 0xc]
call sym._free
add esp, 4
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret