Function at 0x455a50
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x78
cmp dword [0x505d04], 0
jne 0x455b1b
mov dword [0x505cc4], 0
mov dword [0x505cc8], 0
mov eax, dword [0x5052b0]
mov dword [0x505ccc], eax
mov dword [0x505cd0], 0
mov dword [0x505cd4], 0
mov dword [0x505cd8], eax
mov dword [0x505cdc], 0
mov dword [0x505ce0], 0
mov dword [0x505ce4], eax
mov dword [0x505ce8], 0
mov dword [0x505cec], 0
mov dword [0x505cf0], eax
mov dword [0x505cf4], 0
mov dword [0x505cf8], 0
mov dword [0x505cfc], eax
mov dword [0x505d04], 0x38
mov dword [0x505d0c], 0
mov dword [0x505d08], 0
mov dword [0x505d00], 0
push 0x505cc4
call dbg.ffConnectDisplayServerImpl
add esp, 4
mov edi, dword [esp + 0x8c]
mov eax, dword [0x505d08]
test eax, eax
je 0x455dcd
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x455b5c
cmp ecx, 1
mov ecx, dbg.sortByNameAsc
mov edx, dbg.sortByNameDesc
cmove edx, ecx
push edx
push dword [0x505d04]
push eax
push dword [0x505d00]
call sym._qsort
add esp, 0x10
cmp dword [edi + 0x48], 0
je 0x455e71
lea eax, [edi + 0x20]
push 0
push eax
push 0
push str.Display
call dbg.ffPrintLogoAndKey
add esp, 0x10
mov dword [esp], 0
mov dword [esp + 4], 0
mov esi, dword [0x5052b0]
mov dword [esp + 8], esi
xor ebp, ebp
cmp dword [0x505d08], 0
jle 0x4562d2
mov ebp, dword [0x505d00]
jmp 0x455be5
mov esi, dword [esp + 8]
mov dword [esp + 4], ecx
mov byte [esi + ebx], 0x20
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
lea eax, [esi + ebx]
mov byte [eax], 0
add ebp, 0x38
mov eax, ebp
sub eax, dword [0x505d00]
sar eax, 3
imul eax, eax, 0xb6db6db7
cmp eax, dword [0x505d08]
jge 0x455def
lea ecx, [ebp + 0x10]
xor eax, eax
test byte [edi + 0x48], 1
sete al
cmovne ecx, ebp
shl eax, 4
push dword [ebp + eax + 4]
push dword [ecx]
push str._ix_i
lea eax, [esp + 0xc]
push eax
call dbg.ffStrbufAppendF
add esp, 0x10
test byte [edi + 0x48], 4
jne 0x455c60
mov eax, dword [esp]
mov ebx, dword [esp + 4]
test eax, eax
je 0x455c27
lea ecx, [ebx + 1]
cmp eax, ecx
jne 0x455bab
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [ebx + 2]
nop word [eax + eax]
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x455c40
test eax, eax
je 0x455c9b
push edi
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov esi, eax
jmp 0x455d80
movsd xmm0, qword [ebp + 8]
ucomisd xmm0, qword [0x4f5c60]
jbe 0x455d00
cmp byte [edi + 0x4c], 0
je 0x455cc4
sub esp, 0x10
movsd qword [esp + 8], xmm0
lea eax, [esp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], str.____gHz
call dbg.ffStrbufAppendF
add esp, 0x10
jmp 0x455d00
push edi
call sym._malloc
add esp, 4
mov esi, eax
test ebx, ebx
je 0x455d75
lea eax, [ebx + 1]
push eax
push dword [esp + 0xc]
push esi
call sym._memcpy
add esp, 0xc
jmp 0x455d80
addsd xmm0, qword [0x4f5c48]
cvttsd2si eax, xmm0
mov ecx, eax
sar ecx, 0x1f
subsd xmm0, qword [0x4f5c50]
cvttsd2si edx, xmm0
and edx, ecx
or edx, eax
push edx
push str.____iHz
lea eax, [esp + 8]
push eax
call dbg.ffStrbufAppendF
add esp, 0xc
nop dword [eax + eax]
mov eax, dword [esp]
mov ebx, dword [esp + 4]
test eax, eax
je 0x455d16
mov ecx, ebx
not ecx
add ecx, eax
cmp ecx, 2
jae 0x455d4d
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [ebx + 3]
nop word cs:[eax + eax]
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x455d30
test eax, eax
je 0x455d53
push edi
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov esi, eax
jmp 0x455da0
mov esi, dword [esp + 8]
jmp 0x455dae
push edi
call sym._malloc
add esp, 4
mov esi, eax
test ebx, ebx
je 0x455d96
lea eax, [ebx + 1]
push eax
push dword [esp + 0xc]
push esi
call sym._memcpy
add esp, 0xc
jmp 0x455da0
mov byte [esi], 0
nop dword [eax + eax]
mov dword [esp + 8], esi
mov dword [esp], edi
lea ecx, [ebx + 1]
mov edi, dword [esp + 0x8c]
jmp 0x455baf
mov byte [esi], 0
nop dword [eax]
mov dword [esp + 8], esi
mov dword [esp], edi
mov edi, dword [esp + 0x8c]
mov word [esi + ebx], 0x202c
mov eax, dword [esp + 4]
mov esi, dword [esp + 8]
lea ebx, [eax + 2]
mov dword [esp + 4], ebx
add eax, esi
add eax, 2
jmp 0x455bc2
add edi, 0x20
push str.Couldnt_detect_display
push 0
push edi
push 0
push str.Display
call dbg.ffPrintError
add esp, 0x8c
jmp 0x45630e
test ebx, ebx
je 0x4562d0
cmp byte [ebx + esi - 1], 0x20
jne 0x45623a
nop word cs:[eax + eax]
mov ebp, ebx
cmp ebx, 1
je 0x45620e
lea ebx, [ebp - 1]
cmp byte [esi + ebp - 2], 0x20
je 0x455e10
mov dword [esp + 4], ebx
cmp dword [esp], 0
jne 0x456220
lea eax, [ebx + 1]
mov ecx, 0x20
nop dword [eax + eax]
mov edi, ecx
add ecx, ecx
cmp eax, edi
ja 0x455e40
push edi
call sym._malloc
add esp, 4
mov byte [eax], 0
mov dword [esp + 8], eax
mov dword [esp], edi
push ebx
push esi
push eax
mov esi, eax
call sym._memcpy
add esp, 0xc
mov dword [esp + 4], ebx
jmp 0x456220
mov dword [esp], 0
mov eax, dword [0x5052b0]
mov dword [esp + 8], eax
mov eax, dword [0x505d08]
test eax, eax
je 0x45630b
lea ecx, [edi + 0x20]
mov dword [esp + 0xc], ecx
xor ebx, ebx
jmp 0x455f46
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 1
lea ecx, [ebp + 4]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], 9
lea ecx, [ebp + 8]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 1
lea ecx, [ebp + 0x10]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 1
lea ecx, [ebp + 0x14]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], 7
lea ecx, [ebp + 0x18]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], 6
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], 1
lea ecx, [ebp + 0x28]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], 0xb
add ebp, 0x2c
mov dword [esp + 0x74], ebp
lea ecx, [esp + 0x30]
push ecx
push 9
push 1
push dword [esp + 0x18]
push 0
push eax
call dbg.ffPrintFormat
add esp, 0x18
mov eax, dword [0x505d08]
cmp ebx, eax
jae 0x4561ec
mov ecx, dword [0x505d04]
imul ecx, ebx
inc ebx
cmp eax, 1
mov eax, ebx
mov edx, 0
cmove eax, edx
mov ebp, dword [0x505d00]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + ecx + 0x24]
cmp eax, 1
mov esi, str.external
mov edx, str.built_in
cmove esi, edx
test eax, eax
cmove esi, eax
cmp dword [esp], 0
je 0x455f90
mov eax, dword [esp + 8]
mov byte [eax], 0
jmp 0x455f99
mov eax, dword [0x5052b0]
mov dword [esp + 8], eax
add ebp, ecx
mov dword [esp + 4], 0
cmp dword [edi + 0x24], 0
je 0x455ff0
mov dword [esp + 0x18], 1
lea eax, [esp + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 7
lea eax, [ebp + 0x18]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 6
mov dword [esp + 0x2c], esi
lea eax, [esp + 0x18]
push eax
push 3
push dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
call dbg.ffParseFormatString
jmp 0x456026
cmp dword [ebp + 0x1c], 0
je 0x456005
push dword [ebp + 0x20]
push str.Display
push str._s___s_
jmp 0x45601c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x456169
push eax
push str.Display
push str._s___d_
lea eax, [esp + 0xc]
push eax
call dbg.ffStrbufAppendF
add esp, 0x10
cmp dword [edi + 0x3c], 0
mov eax, dword [esp + 8]
jne 0x455ea0
push 1
push dword [esp + 0x10]
push 0
push eax
call dbg.ffPrintLogoAndKey
add esp, 0x10
push dword [ebp + 4]
push dword [ebp]
push str._ix_i
call sym._printf_12
add esp, 0xc
movsd xmm0, qword [ebp + 8]
ucomisd xmm0, qword [0x4f5c60]
jbe 0x4560e0
cmp byte [edi + 0x4c], 0
je 0x4560aa
movsd xmm1, qword [0x4f5c58]
mulsd xmm0, xmm1
addsd xmm0, qword [0x4f5c48]
cvttpd2dq xmm0, xmm0
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
sub esp, 0xc
movsd qword [esp + 4], xmm0
mov dword [esp], str.____gHz
call sym._printf_12
add esp, 0xc
jmp 0x4560e0
addsd xmm0, qword [0x4f5c48]
cvttsd2si eax, xmm0
mov ecx, eax
sar ecx, 0x1f
subsd xmm0, qword [0x4f5c50]
cvttsd2si edx, xmm0
and edx, ecx
or edx, eax
push edx
push str.____iHz
call sym._printf_12
add esp, 8
nop dword [eax]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x456110
cmp eax, dword [ebp]
je 0x456110
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x456110
cmp ecx, dword [ebp + 4]
je 0x456110
push ecx
push eax
push str.__as__ix_i_
call sym._printf_12
add esp, 0xc
nop word [eax + eax]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x456140
cmp eax, 1
mov esi, str.__External_
mov eax, str.__Built_in_
cmove esi, 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 0xb
push esi
call sym._fwrite
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x45615a
cmp byte [ebp + 0x2c], 0
je 0x45615a
push 0x4f5ce4
call sym._printf_12
add esp, 4
push 0xa
call sym._putchar
add esp, 4
jmp 0x455f39
mov eax, dword [esp]
cmp eax, 8
jae 0x4561a0
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
nop
mov edi, ecx
add ecx, ecx
cmp edi, 8
jb 0x456180
test eax, eax
je 0x4561a8
push edi
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov ecx, dword [esp + 4]
jmp 0x4561b6
xor ecx, ecx
mov eax, dword [esp + 8]
jmp 0x4561c4
push edi
call sym._malloc
add esp, 4
mov byte [eax], 0
xor ecx, ecx
mov dword [esp + 8], eax
mov dword [esp], edi
mov edi, dword [esp + 0x8c]
mov dword [eax + ecx + 3], 0x79616c70
mov dword [eax + ecx], 0x70736944
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
jmp 0x456029
cmp dword [esp], 0
mov dword [esp + 4], 0
je 0x45630b
mov dword [esp], 0
push dword [esp + 8]
jmp 0x456303
mov dword [esp + 4], 0
cmp dword [esp], 0
je 0x4562c3
mov byte [esi + ebp - 1], 0
mov ebx, dword [esp + 4]
mov esi, dword [esp + 8]
test ebx, ebx
mov ebp, 0
je 0x4562d2
cmp byte [ebx + esi - 1], 0x2c
jne 0x4562af
inc ebx
nop word cs:[eax + eax]
mov ebp, ebx
cmp ebx, 2
je 0x4562b3
lea ebx, [ebp - 1]
cmp byte [esi + ebp - 3], 0x2c
je 0x456250
cmp dword [esp], 0
jne 0x4562b9
mov dword [esp + 0xc], ebp
lea eax, [ebx - 1]
mov dword [esp + 0x14], eax
mov eax, 0x20
nop word [eax + eax]
mov ebp, eax
add eax, eax
cmp ebx, ebp
ja 0x456280
push ebp
call sym._malloc
add esp, 4
mov edi, eax
mov byte [eax], 0
mov dword [esp], ebp
push dword [esp + 0x14]
push esi
push eax
call sym._memcpy
add esp, 0xc
mov esi, edi
mov ebp, dword [esp + 0xc]
jmp 0x4562b9
mov ebp, ebx
jmp 0x4562d2
cmp dword [esp], 0
je 0x456313
mov byte [esi + ebp - 2], 0
add ebp, 0xfffffffe
jmp 0x4562d2
mov dword [esp], 0
mov esi, dword [0x5052b0]
xor ebp, ebp
cmp dword [esp], 0
sete bl
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 ebp
push 1
push esi
call sym._fwrite
add esp, 0x10
push edi
push 0xa
call sym._fputc
add esp, 8
test bl, bl
jne 0x45630b
push esi
call sym._free
add esp, 4
add esp, 0x78
pop esi
pop edi
pop ebx
pop ebp
ret
mov bl, 1
xor ebp, ebp
mov esi, dword [0x5052b0]
jmp 0x4562d9