Function at 0x5eef6a
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x6b72a7
call fcn.006426c4
sub esp, 0x128
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp + 0x60], esi
lea edi, [esi + 0x16c]
push edi
call fcn.00485e07
push dword [0x7a5e00]
mov ecx, edi
call fcn.004392ec
test eax, eax
jne 0x5eefe1
call fcn.005f8a85
test al, al
je 0x5eefe1
push dword [ebp + 0x70]
push esi
call fcn.005eea11
cmp dword [edi + 0x14], 8
jb 0x5eefa8
mov edi, dword [edi]
add esi, 0xdc
cmp dword [esi + 0x14], 0x10
jb 0x5eefb6
mov esi, dword [esi]
push edi
call fcn.0047d087
push eax
push 0xffffffffffffffff
push esi
call fcn.0047cf46
push eax
push 0x8020
push dword [0x7e6a30]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 0x666
jmp 0x5ef58e
push dword [0x7a5e10]
mov ecx, edi
call fcn.004392ec
test eax, eax
je 0x5ef003
push dword [0x7a5e0c]
mov ecx, edi
call fcn.004392ec
test eax, eax
jne 0x5ef012
push 0x2710
mov ecx, 0x7b5960
call fcn.00504763
push dword [0x7a5e04]
mov ecx, edi
call fcn.004392ec
or dword [ebp + 0x40], 0xffffffff
xor ebx, ebx
inc ebx
test eax, eax
jne 0x5ef051
call fcn.005dc303
test eax, eax
je 0x5ef0f7
mov ecx, dword [0x7c1dc4]
push 0x2710
call fcn.005dc201
test al, al
jne 0x5ef0f7
jmp 0x5eefd7
lea eax, [esi + 0xf4]
cmp dword [eax + 0x10], 0
je 0x5ef0f7
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.00440cea
and dword [ebp - 4], 0
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jae 0x5ef07b
lea eax, [ebp + 0x48]
mov dword [ebp + 0x30], eax
lea eax, [ebp + 0x30]
push eax
mov dword [ebp + 0x34], 0x71df80
call fcn.004635b6
test al, al
je 0x5ef0e8
push str.inprocess
lea ecx, [ebp]
call fcn.0040f32f
add esi, 4
lea eax, [ebp]
push esi
xor ebx, ebx
push eax
inc ebx
push 0
mov byte [ebp - 4], bl
call fcn.005eeca7
push 0
push ebx
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.0040f95f
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00427fbe
mov ecx, 0x7e5b78
call fcn.005a922c
push 0
push ebx
lea ecx, [ebp + 0x48]
call fcn.004285f6
jmp 0x5eefd7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x48]
push 0
push ebx
call fcn.004285f6
lea ecx, [ebp - 0xa8]
call fcn.00621f31
xor eax, eax
mov dword [ebp - 4], 2
push eax
push eax
push eax
push eax
push eax
push str.BtAppInstallTail
lea ecx, [ebp - 0xa8]
call fcn.0059066d
lea ecx, [ebp - 0xa8]
call fcn.00622025
push 0x14
lea eax, [ebp - 0x5c]
push eax
call fcn.0046d80f
lea eax, [ebp - 0x5c]
push eax
push 0x29
lea eax, [ebp - 0x134]
push eax
call fcn.00471847
lea eax, [esi + 0x34]
push eax
lea ecx, [ebp - 0x24]
call fcn.00427fbe
cmp dword [ebp - 0x14], 0
mov byte [ebp - 4], 3
jne 0x5ef1a0
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
mov dword [ebp + 0x64], eax
jb 0x5ef16c
mov eax, dword [eax]
push 0x5c
push eax
call fcn.0065d51b
pop ecx
pop ecx
test eax, eax
je 0x5ef17f
add eax, 2
jmp 0x5ef18a
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x5ef18d
mov eax, dword [eax]
mov dword [ebp + 0x64], eax
push eax
call fcn.00428864
pop ecx
push eax
push dword [ebp + 0x64]
lea ecx, [ebp - 0x24]
call fcn.00439135
cmp dword [edi + 0x14], 8
jb 0x5ef1aa
mov ecx, dword [edi]
jmp 0x5ef1ac
mov ecx, edi
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5ef1b8
lea eax, [ebp - 0x24]
push ecx
or ecx, 0xffffffff
push ecx
push ecx
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0047f48a
lea eax, [esi + 0x10c]
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.00440cea
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 4
jb 0x5ef1e7
mov eax, dword [eax]
push eax
push 0x7b0490
lea eax, [ebp + 0x18]
push 0x6c9e48
push eax
call fcn.00465d7f
add esp, 0x10
push 0
push ebx
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 6
call fcn.004285f6
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
jae 0x5ef21c
lea eax, [ebp + 0x18]
push eax
call fcn.00462090
test al, al
jne 0x5ef294
push str.createdir
lea ecx, [ebp + 0x48]
call fcn.0040f32f
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp + 0x48]
xor edi, edi
push eax
push edi
call fcn.005eeca7
push edi
push ebx
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 6
call fcn.0040f95f
sub esp, 0x18
lea eax, [esi + 4]
mov ecx, esp
push eax
call fcn.00427fbe
mov ecx, 0x7e5b78
call fcn.005a922c
push edi
push ebx
lea ecx, [ebp + 0x18]
call fcn.004285f6
push edi
push ebx
lea ecx, [ebp - 0x24]
call fcn.004285f6
lea ecx, [ebp - 0xa8]
call fcn.00621f73
or eax, 0xffffffff
jmp 0x5ef58e
mov esi, dword [esi]
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x24]
call fcn.00424e68
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0x24]
call fcn.00424e50
mov edx, dword [ebp - 0x40]
mov esi, dword [ebp + 0x60]
jmp 0x5ef455
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x5ef2c2
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
mov dword [ebp + 0x60], eax
cmp dword [eax + 0x14], 0x10
jb 0x5ef2dc
mov eax, dword [eax]
mov dword [ebp + 0x60], eax
push eax
lea eax, [ebp - 0xd8]
push eax
call fcn.0047e93b
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 8
jb 0x5ef2f5
mov eax, dword [eax]
cmp dword [ebp + 0x2c], 8
mov ecx, dword [ebp + 0x18]
jae 0x5ef301
lea ecx, [ebp + 0x18]
push eax
push ecx
lea eax, [ebp + 0x48]
push 0x6c9e48
push eax
call fcn.00465d7f
add esp, 0x10
push 0
push ebx
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0xa
call fcn.004285f6
mov edx, dword [ebp + 0x60]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp + 0x64], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5ef331
sub ecx, dword [ebp + 0x64]
push 0x2f
push edx
mov dword [ebp + 0x64], ecx
call fcn.0065b620
sub eax, dword [ebp + 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x64]
dec ecx
cmp eax, ecx
mov eax, dword [ebp + 0x48]
jne 0x5ef36d
cmp dword [ebp + 0x5c], 8
jae 0x5ef35f
lea eax, [ebp + 0x48]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jmp 0x5ef442
cmp dword [ebp + 0x5c], 8
jae 0x5ef376
lea eax, [ebp + 0x48]
xor ecx, ecx
push ecx
push 0x80
push 2
push ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp + 0x64], eax
cmp eax, 0xffffffff
jne 0x5ef3d1
push 0
lea eax, [ebp + 0x48]
push eax
call fcn.00460f52
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jae 0x5ef3ad
lea eax, [ebp + 0x48]
xor ecx, ecx
push ecx
push 0x80
push 2
push ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp + 0x64], eax
cmp eax, 0xffffffff
je 0x5ef5a2
mov eax, dword [esi]
push dword [ebp + 0x60]
mov dword [ebp + 0x3c], eax
lea eax, [ebp - 0xf0]
push eax
call fcn.0047e93b
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xc
jb 0x5ef3f1
mov eax, dword [eax]
lea ecx, [ebp + 0x38]
push ecx
push eax
push dword [ebp + 0x3c]
call fcn.00483400
push 0
push ebx
lea ecx, [ebp - 0xf0]
mov dword [ebp + 0x60], eax
mov byte [ebp - 4], 0xa
call fcn.004285f6
push 0
lea eax, [ebp + 0x34]
push eax
push dword [ebp + 0x38]
push dword [ebp + 0x60]
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x5ef5f8
push ebx
push dword [ebp + 0x60]
call fcn.00460614
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0
push ebx
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 6
call fcn.004285f6
mov edx, dword [ebp + 0x44]
inc edx
mov dword [ebp + 0x44], edx
cmp edx, dword [ebp + 0x14]
jne 0x5ef2b9
lea eax, [esi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x5ef46c
mov eax, dword [eax]
lea ecx, [ebp - 0x134]
push ecx
push eax
lea eax, [ebp - 0x108]
push str.BTAPPS__s__PAIRINGKEY__S_
push eax
call fcn.00465d7f
add esp, 0x10
push dword [ebp + 0x70]
mov byte [ebp - 4], 0xe
push esi
call fcn.005eea11
call fcn.00475e15
lea ecx, [ebp - 0xa8]
call fcn.0062206c
push dword [ebp - 0xa4]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [edi + 0x14], 8
jb 0x5ef4b9
mov edi, dword [edi]
lea eax, [esi + 0xdc]
cmp dword [eax + 0x14], 0x10
mov dword [ebp + 0x70], eax
jb 0x5ef4cd
mov eax, dword [eax]
mov dword [ebp + 0x70], eax
push edi
call fcn.0047d087
push eax
push 0xffffffffffffffff
push dword [ebp + 0x70]
call fcn.0047cf46
push eax
push 0x8020
push dword [0x7e6a30]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, 0x6c4198
push edi
call fcn.00428864
pop ecx
push eax
push edi
lea ecx, [esi + 0x188]
call fcn.00439135
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x5ef514
mov esi, dword [esi]
push esi
call fcn.00460cab
push eax
lea ecx, [ebp]
call fcn.00429d77
push str.install
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
call fcn.0040f32f
lea eax, [ebp]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
call fcn.005eeca7
xor edi, edi
lea ecx, [ebp - 0x3c]
push edi
push ebx
call fcn.0040f95f
push edi
push ebx
lea ecx, [ebp]
call fcn.004285f6
push edi
push ebx
lea ecx, [ebp - 0x108]
call fcn.004285f6
mov dword [ebp + 0x40], edi
push edi
push ebx
lea ecx, [ebp + 0x18]
call fcn.004285f6
push edi
push ebx
lea ecx, [ebp - 0x24]
call fcn.004285f6
lea ecx, [ebp - 0xa8]
call fcn.00621f73
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x68]
pop ebp
ret 4
push 0x6ea59c
lea ecx, [ebp - 0x3c]
call fcn.0040f32f
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x3c]
xor edi, edi
push eax
push edi
call fcn.005eeca7
push edi
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.0040f95f
sub esp, 0x18
lea eax, [esi + 4]
mov ecx, esp
push eax
call fcn.00427fbe
mov ecx, 0x7e5b78
call fcn.005a922c
push edi
push ebx
lea ecx, [ebp + 0x48]
call fcn.004285f6
jmp 0x5ef26d
push 0x71dfc0
lea ecx, [ebp - 0x3c]
call fcn.0040f32f
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x3c]
xor edi, edi
push eax
push edi
call fcn.005eeca7
push edi
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.0040f95f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp + 0x64]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
push dword [ebp + 0x60]
call fcn.00460614
sub esp, 0x18
lea eax, [esi + 4]
mov ecx, esp
push eax
call fcn.00427fbe
mov ecx, 0x7e5b78
call fcn.005a922c
push edi
push ebx
lea ecx, [ebp + 0x48]
call fcn.004285f6
jmp 0x5ef56c