Function at 0x428af0
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x50
mov esi, dword [esp + 0x64]
movapd xmm0, xmmword [0x4f2700]
movupd xmmword [esp + 0x34], xmm0
lea eax, [esp + 0x34]
push eax
call dbg.ffDetectBluetooth
add esp, 4
test eax, eax
je 0x428b3a
add esi, 0x20
push eax
push 0x4f272a
push 0
push esi
push 0
push str.Bluetooth
call dbg.ffPrintError
add esp, 0x18
jmp 0x428ffb
mov ebp, dword [esp + 0x3c]
test ebp, ebp
jle 0x428fc6
mov ecx, dword [esp + 0x34]
lea edi, [ecx + 0x28]
xor edx, edx
xor ebx, ebx
mov dword [esp], 0
mov esi, ecx
jmp 0x428bb3
lea ebx, [edx + edx]
test edx, edx
mov eax, 0x10
cmove ebx, eax
lea eax, [ebx*4]
push eax
push dword [esp + 4]
mov ebp, edx
call sym._realloc
mov edx, ebp
add esp, 8
mov ebp, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [eax + edx*4], esi
inc edx
mov dword [esp + 0x24], edx
mov ecx, dword [esp + 0x34]
add esi, 0x28
mov edx, edi
sub edx, ecx
sar edx, 3
imul edx, edx, 0xcccccccd
add edi, 0x28
cmp edx, ebp
mov edx, dword [esp + 0x24]
jge 0x428bd2
cmp byte [esi + 0x25], 0
jne 0x428bc3
mov eax, dword [esp + 0x64]
cmp byte [eax + 0x48], 0
je 0x428bcc
cmp edx, ebx
je 0x428b60
mov eax, dword [esp]
jmp 0x428b89
mov dword [esp + 0x24], edx
jmp 0x428b98
test edx, edx
je 0x428fcd
mov ebp, dword [esp + 0x64]
add ebp, 0x20
xor eax, eax
mov ecx, dword [esp]
mov dword [esp + 0x2c], ebp
jmp 0x428c0b
call sym._free
add esp, 4
mov ecx, dword [esp]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
cmp eax, edx
je 0x428fee
mov edi, dword [ecx + eax*4]
lea ebx, [eax + 1]
cmp edx, 1
mov dword [esp + 0x30], ebx
mov eax, 0
cmove ebx, eax
mov ecx, dword [esp + 0x64]
cmp dword [ecx + 0x3c], 0
je 0x428d00
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x4c], eax
movzx eax, byte [edi + 0x24]
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
movzx eax, word [ecx + 0x49]
mov word [esp + 4], ax
sub esp, 0x14
mov word [esp + 0xc], ax
movsd qword [esp + 4], xmm0
lea esi, [esp + 0x58]
mov dword [esp], esi
mov dword [esp + 0x10], 0
call dbg.ffPercentAppendNum
add esp, 0x14
mov dword [esp + 4], 7
mov dword [esp + 8], edi
mov dword [esp + 0xc], 7
lea eax, [edi + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 7
add edi, 0x18
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 7
mov dword [esp + 0x20], esi
movzx eax, bl
lea ecx, [esp + 4]
push ecx
push 4
push 0
push ebp
push eax
push str.Bluetooth
call dbg.ffPrintFormat
add esp, 0x18
cmp dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
je 0x428bf8
mov dword [esp + 0x44], 0
push dword [esp + 0x4c]
jmp 0x428bf0
movzx eax, bl
push 0
push ebp
push eax
push str.Bluetooth
call dbg.ffPrintLogoAndKey
add esp, 0x10
mov ebx, dword [edi]
mov dword [esp + 4], ebx
test ebx, ebx
je 0x428d2c
push ebx
call sym._malloc
add esp, 4
mov byte [eax], 0
jmp 0x428d31
mov eax, dword [0x5052b0]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x428dc3
mov ebp, dword [edi + 8]
test ebp, ebp
je 0x428dc3
mov edx, ebx
sub edx, 1
jb 0x428d58
xor ecx, ecx
cmp edx, esi
jae 0x428da6
mov dword [esp + 0x28], ebp
cmp ebx, 2
mov ecx, ebx
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 1]
nop dword [eax]
mov ebp, ecx
add ecx, ecx
cmp edx, ebp
ja 0x428d70
test ebx, ebx
je 0x428d8c
push ebp
push eax
call sym._realloc
add esp, 8
mov ecx, dword [esp + 8]
jmp 0x428d9a
push ebp
call sym._malloc
add esp, 4
mov byte [eax], 0
xor ecx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x28]
add ecx, eax
push esi
push ebp
push ecx
call sym._memcpy
add esp, 0xc
add esi, dword [esp + 8]
mov dword [esp + 8], esi
mov eax, dword [esp + 0xc]
mov byte [eax + esi], 0
movzx eax, byte [edi + 0x24]
mov ecx, eax
dec cl
cmp cl, 0x63
ja 0x428ebb
mov esi, dword [esp + 8]
test esi, esi
je 0x428e24
mov eax, dword [esp + 4]
test eax, eax
je 0x428deb
lea ecx, [esi + 1]
cmp eax, ecx
jne 0x428e2c
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 2]
nop dword [eax + eax]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x428e00
test eax, eax
je 0x428e36
push ebx
push dword [esp + 0x10]
call sym._realloc
add esp, 8
mov ebp, eax
mov esi, dword [esp + 8]
lea ecx, [esi + 1]
jmp 0x428e5a
xor ecx, ecx
mov edx, dword [esp + 0x64]
jmp 0x428e87
mov ebp, dword [esp + 0xc]
mov edx, dword [esp + 0x64]
jmp 0x428e66
push ebx
call sym._malloc
add esp, 4
mov ebp, eax
lea eax, [esi + 1]
mov dword [esp + 0x28], eax
push eax
push dword [esp + 0x10]
push ebp
call sym._memcpy
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov edx, dword [esp + 0x64]
mov dword [esp + 0xc], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov byte [ebp + esi], 0x20
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov byte [ecx + eax], 0
movzx eax, byte [edi + 0x24]
cmp dword [esp + 8], 0
setne cl
movzx eax, al
cvtsi2sd xmm0, eax
movzx eax, word [edx + 0x49]
mov word [esp + 0x44], ax
sub esp, 0x14
mov word [esp + 0xc], ax
movzx eax, cl
mov dword [esp + 0x10], eax
movsd qword [esp + 4], xmm0
lea eax, [esp + 0x18]
mov dword [esp], eax
call dbg.ffPercentAppendNum
add esp, 0x14
cmp byte [edi + 0x25], 0
mov ebp, dword [esp + 0x2c]
jne 0x428f77
mov eax, dword [esp + 4]
mov esi, dword [esp + 8]
test eax, eax
je 0x428ee0
mov ecx, esi
not ecx
add ecx, eax
cmp ecx, 0xf
jae 0x428f15
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 0x10]
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x428ef0
test eax, eax
je 0x428f1b
push ebx
push dword [esp + 0x10]
call sym._realloc
add esp, 8
mov edi, eax
mov dword [esp + 0xc], eax
mov esi, dword [esp + 8]
jmp 0x428f44
mov edi, dword [esp + 0xc]
jmp 0x428f48
push ebx
call sym._malloc
add esp, 4
mov edi, eax
test esi, esi
je 0x428f3d
lea eax, [esi + 1]
push eax
push dword [esp + 0x10]
push edi
call sym._memcpy
add esp, 0xc
jmp 0x428f40
mov byte [edi], 0
mov dword [esp + 0xc], edi
mov dword [esp + 4], ebx
mov dword [edi + esi + 0xb], 0x5d646574
mov dword [edi + esi + 8], 0x7463656e
mov dword [edi + esi + 4], 0x6e6f6373
mov dword [edi + esi], 0x69645b20
lea eax, [esi + 0xf]
mov dword [esp + 8], eax
mov byte [edi + esi + 0xf], 0
mov ebp, dword [esp + 0x2c]
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 + 4], 0
mov dword [esp + 8], 0
je 0x428bf8
mov dword [esp + 4], 0
push dword [esp + 0xc]
jmp 0x428bf0
mov dword [esp], 0
mov eax, dword [esp + 0x64]
add eax, 0x20
push str.No_bluetooth_devices_found
push 0
push eax
push 0
push str.Bluetooth
call dbg.ffPrintError
add esp, 0x14
mov ecx, dword [esp]
test ecx, ecx
je 0x428ffb
push ecx
call sym._free
add esp, 4
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x3c], 0
jle 0x4290b5
lea esi, [eax + 0x28]
add eax, 0x20
mov edi, eax
jmp 0x429040
mov dword [edi - 0xc], eax
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, eax
sar ecx, 3
imul ecx, ecx, 0xcccccccd
add esi, 0x28
add edi, 0x28
cmp ecx, dword [esp + 0x3c]
jge 0x4290b5
cmp dword [edi - 0x20], 0
mov dword [edi - 0x1c], 0
je 0x42905f
mov dword [edi - 0x20], 0
push dword [edi - 0x18]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [edi - 0x18], eax
cmp dword [edi - 8], 0
mov dword [edi - 4], 0
je 0x42908a
mov dword [edi - 8], 0
push dword [edi]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [edi], eax
cmp dword [edi - 0x14], 0
mov dword [edi - 0x10], 0
je 0x429020
mov dword [edi - 0x14], 0
push dword [edi - 0xc]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
jmp 0x429020
test eax, eax
je 0x4290d2
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
push eax
call sym._free
add esp, 4
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret