Function at 0x42aee0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x7c
mov ebp, dword [esp + 0x90]
movapd xmm0, xmmword [0x4f28e0]
movupd xmmword [esp + 0x2c], xmm0
lea eax, [esp + 0x2c]
push eax
push ebp
call dbg.ffDetectBrightness
add esp, 8
test eax, eax
je 0x42af52
add ebp, 0x20
push eax
push 0x4f291b
push 0
push ebp
push 0
push str.Brightness
call dbg.ffPrintError
add esp, 0x18
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x42af4a
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
push eax
call sym._free
add esp, 4
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x34]
test eax, eax
je 0x42b327
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov ecx, dword [0x5052b0]
mov dword [esp + 0x14], ecx
jle 0x42af29
mov ebx, dword [esp + 0x2c]
lea edi, [ebp + 0x20]
lea ecx, [ebp + 0x4c]
mov dword [esp + 0x18], ecx
xor esi, esi
mov dword [esp + 0x24], edi
jmp 0x42afb7
mov eax, dword [0x5052b0]
mov dword [ebx + 8], eax
inc esi
add ebx, 0x28
mov eax, ebx
sub eax, dword [esp + 0x2c]
sar eax, 3
imul ecx, eax, 0xcccccccd
mov eax, dword [esp + 0x34]
cmp ecx, eax
jge 0x42b346
cmp dword [ebp + 0x24], 0
je 0x42b000
lea ecx, [esi + 1]
cmp eax, 1
mov eax, 0
cmove ecx, eax
mov dword [esp], ecx
mov dword [esp + 0x44], 1
mov eax, esp
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 7
mov dword [esp + 0x50], ebx
lea eax, [esp + 0x44]
push eax
push 2
push edi
lea eax, [esp + 0x18]
push eax
call dbg.ffParseFormatString
jmp 0x42b017
push dword [ebx + 8]
push str.Brightness
push 0x4f2935
lea eax, [esp + 0x18]
push eax
call dbg.ffStrbufAppendF
add esp, 0x10
movsd xmm2, qword [ebx + 0x20]
movsd xmm0, qword [ebx + 0x10]
movsd xmm1, qword [ebx + 0x18]
subsd xmm2, xmm0
subsd xmm1, xmm0
divsd xmm2, xmm1
mulsd xmm2, qword [0x4f28f0]
cmp dword [ebp + 0x3c], 0
mov dword [esp + 0x28], esi
je 0x42b130
lea eax, [ebx + 0x20]
mov dword [esp + 0x1c], eax
lea edi, [ebx + 0x10]
lea ebp, [ebx + 0x18]
mov dword [esp], 0
mov dword [esp + 4], 0
mov eax, dword [0x5052b0]
mov dword [esp + 8], eax
sub esp, 0x14
mov eax, dword [esp + 0x2c]
movzx eax, word [eax]
mov word [esp + 0xc], ax
movsd qword [esp + 4], xmm2
lea esi, [esp + 0x14]
mov dword [esp], esi
mov dword [esp + 0x10], 0
call dbg.ffPercentAppendNum
add esp, 0x14
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], 7
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], 7
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], 9
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], 9
mov dword [esp + 0x70], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x74], 9
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x54]
push ecx
push 5
push 1
push edi
push 0
push eax
call dbg.ffPrintFormat
add esp, 0x18
cmp dword [esp], 0
mov dword [esp + 4], 0
je 0x42b11a
mov dword [esp], 0
push dword [esp + 8]
call sym._free
add esp, 4
mov ebp, dword [esp + 0x90]
jmp 0x42b2d0
movsd qword [esp + 0x1c], xmm2
mov dword [esp], 0
mov dword [esp + 4], 0
mov eax, dword [0x5052b0]
mov dword [esp + 8], eax
push 1
push edi
push 0
push dword [esp + 0x20]
call dbg.ffPrintLogoAndKey
add esp, 0x10
movzx eax, byte [0x5063e6]
test al, 2
je 0x42b19b
sub esp, 0x10
mov eax, dword [esp + 0x28]
movzx eax, word [eax]
mov word [esp + 0xc], ax
movsd xmm0, qword [esp + 0x2c]
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x10]
mov dword [esp], eax
call dbg.ffPercentAppendBar
add esp, 0x10
movzx eax, byte [0x5063e6]
test al, 1
je 0x42b284
mov esi, dword [esp + 4]
test esi, esi
je 0x42b1f2
mov eax, dword [esp]
test eax, eax
je 0x42b1b9
lea ecx, [esi + 1]
cmp eax, ecx
jne 0x42b1fc
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 2]
nop dword [eax]
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x42b1d0
test eax, eax
je 0x42b202
push edi
push dword [esp + 0xc]
call sym._realloc
add esp, 8
mov esi, dword [esp + 4]
lea ecx, [esi + 1]
jmp 0x42b22c
xor ecx, ecx
movsd xmm0, qword [esp + 0x1c]
jmp 0x42b255
mov eax, dword [esp + 8]
jmp 0x42b237
push edi
call sym._malloc
add esp, 4
mov dword [esp + 0x3c], eax
lea ecx, [esi + 1]
mov dword [esp + 0x40], ecx
push ecx
push dword [esp + 0xc]
push eax
call sym._memcpy
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
add esp, 0xc
mov dword [esp + 8], eax
mov dword [esp], edi
mov edi, dword [esp + 0x24]
movsd xmm0, qword [esp + 0x1c]
mov dword [esp + 4], ecx
mov byte [eax + esi], 0x20
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov byte [ecx + eax], 0
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
setne al
sub esp, 0x14
mov ecx, dword [esp + 0x2c]
movzx ecx, word [ecx]
mov word [esp + 0xc], cx
movsd qword [esp + 4], xmm0
lea ecx, [esp + 0x14]
mov dword [esp], ecx
mov dword [esp + 0x10], eax
call dbg.ffPercentAppendNum
add esp, 0x14
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
push eax
push dword [esp + 8]
push 1
push dword [esp + 0x14]
call sym._fwrite
add esp, 0x10
push esi
push 0xa
call sym._fputc
add esp, 8
cmp dword [esp], 0
mov dword [esp + 4], 0
je 0x42b2d0
mov dword [esp], 0
push dword [esp + 8]
call sym._free
add esp, 4
mov esi, dword [esp + 0x28]
cmp dword [esp + 0xc], 0
je 0x42b2f0
mov eax, dword [esp + 0x14]
mov byte [eax], 0
jmp 0x42b2f9
mov eax, dword [0x5052b0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
cmp dword [ebx], 0
mov dword [ebx + 4], 0
je 0x42af90
mov dword [ebx], 0
push dword [ebx + 8]
call sym._free
add esp, 4
jmp 0x42af90
add ebp, 0x20
push str.No_result_is_detected.
push 0
push ebp
push 0
push str.Brightness
call dbg.ffPrintError
add esp, 0x14
jmp 0x42af29
cmp dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
je 0x42af29
mov dword [esp + 0xc], 0
push dword [esp + 0x14]
call sym._free
add esp, 4
jmp 0x42af29