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

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x6b4cf4
call fcn.00640244
sub esp, 0x124
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp + 0x60], esi
lea edi, [esi + 0x16c]
push edi
call fcn.00485b2f
push dword [0x7a1c98]
mov ecx, edi
call fcn.00438eb2
test eax, eax
jne 0x5ecb91
call fcn.005f6664
test al, al
je 0x5ecb91
push dword [ebp + 0x70]
push esi
call fcn.005ec5c1
cmp dword [edi + 0x14], 8
jb 0x5ecb58
mov edi, dword [edi]
add esi, 0xdc
cmp dword [esi + 0x14], 0x10
jb 0x5ecb66
mov esi, dword [esi]
push edi
call fcn.0047c721
push eax
push 0xffffffffffffffff
push esi
call fcn.0047c5e0
push eax
push 0x8020
push dword [0x7e2568]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 0x666
jmp 0x5ed13e
push dword [0x7a1ca8]
mov ecx, edi
call fcn.00438eb2
test eax, eax
je 0x5ecbb3
push dword [0x7a1ca4]
mov ecx, edi
call fcn.00438eb2
test eax, eax
jne 0x5ecbc2
push 0x2710
mov ecx, 0x7b1748
call fcn.00503d3b
push dword [0x7a1c9c]
mov ecx, edi
call fcn.00438eb2
or dword [ebp + 0x40], 0xffffffff
xor ebx, ebx
inc ebx
test eax, eax
jne 0x5ecc01
call fcn.005da155
test eax, eax
je 0x5ecca7
mov ecx, dword [0x7bdb7c]
push 0x2710
call fcn.005da05f
test al, al
jne 0x5ecca7
jmp 0x5ecb87
lea eax, [esi + 0xf4]
cmp dword [eax + 0x10], 0
je 0x5ecca7
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.00440897
and dword [ebp - 4], 0
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jae 0x5ecc2b
lea eax, [ebp + 0x48]
mov dword [ebp + 0x30], eax
lea eax, [ebp + 0x30]
push eax
mov dword [ebp + 0x34], 0x71abe8
call fcn.00462d67
test al, al
je 0x5ecc98
push str.inprocess
lea ecx, [ebp]
call fcn.0040eeff
add esi, 4
lea eax, [ebp]
push esi
xor ebx, ebx
push eax
inc ebx
push 0
mov byte [ebp - 4], bl
call fcn.005ec857
push 0
push ebx
lea ecx, [ebp]
mov byte [ebp - 4], 0
call fcn.0040f52f
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00427b8e
mov ecx, 0x7e1750
call fcn.005a79ee
push 0
push ebx
lea ecx, [ebp + 0x48]
call fcn.004281f2
jmp 0x5ecb87
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x48]
push 0
push ebx
call fcn.004281f2
lea ecx, [ebp - 0xa4]
call fcn.0061fa7f
xor eax, eax
mov dword [ebp - 4], 2
push eax
push eax
push eax
push eax
push eax
push str.BtAppInstallTail
lea ecx, [ebp - 0xa4]
call fcn.0058f203
lea ecx, [ebp - 0xa4]
call fcn.0061fb73
push 0x14
lea eax, [ebp - 0x5c]
push eax
call fcn.0046cec7
lea eax, [ebp - 0x5c]
push eax
push 0x29
lea eax, [ebp - 0x130]
push eax
call fcn.00470b43
lea eax, [esi + 0x34]
push eax
lea ecx, [ebp - 0x24]
call fcn.00427b8e
cmp dword [ebp - 0x14], 0
mov byte [ebp - 4], 3
jne 0x5ecd50
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
mov dword [ebp + 0x64], eax
jb 0x5ecd1c
mov eax, dword [eax]
push 0x5c
push eax
call fcn.0065b08b
pop ecx
pop ecx
test eax, eax
je 0x5ecd2f
add eax, 2
jmp 0x5ecd3a
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x5ecd3d
mov eax, dword [eax]
mov dword [ebp + 0x64], eax
push eax
call fcn.00428460
pop ecx
push eax
push dword [ebp + 0x64]
lea ecx, [ebp - 0x24]
call fcn.00438cfb
cmp dword [edi + 0x14], 8
jb 0x5ecd5a
mov ecx, dword [edi]
jmp 0x5ecd5c
mov ecx, edi
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x5ecd68
lea eax, [ebp - 0x24]
push ecx
or ecx, 0xffffffff
push ecx
push ecx
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0047eb0f
lea eax, [esi + 0x10c]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00440897
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 4
jb 0x5ecd97
mov eax, dword [eax]
push eax
push 0x7ac270
lea eax, [ebp + 0x18]
push 0x6c6dc8
push eax
call fcn.004654e1
add esp, 0x10
push 0
push ebx
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 6
call fcn.004281f2
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
jae 0x5ecdcc
lea eax, [ebp + 0x18]
push eax
call fcn.00461841
test al, al
jne 0x5ece44
push str.createdir
lea ecx, [ebp + 0x48]
call fcn.0040eeff
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp + 0x48]
xor edi, edi
push eax
push edi
call fcn.005ec857
push edi
push ebx
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 6
call fcn.0040f52f
sub esp, 0x18
lea eax, [esi + 4]
mov ecx, esp
push eax
call fcn.00427b8e
mov ecx, 0x7e1750
call fcn.005a79ee
push edi
push ebx
lea ecx, [ebp + 0x18]
call fcn.004281f2
push edi
push ebx
lea ecx, [ebp - 0x24]
call fcn.004281f2
lea ecx, [ebp - 0xa4]
call fcn.0061fac1
or eax, 0xffffffff
jmp 0x5ed13e
mov esi, dword [esi]
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x24]
call fcn.00424a38
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0x24]
call fcn.00424a20
mov edx, dword [ebp - 0x40]
mov esi, dword [ebp + 0x60]
jmp 0x5ed005
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x5ece72
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 0x5ece8c
mov eax, dword [eax]
mov dword [ebp + 0x60], eax
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.0047dfcb
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 8
jb 0x5ecea5
mov eax, dword [eax]
cmp dword [ebp + 0x2c], 8
mov ecx, dword [ebp + 0x18]
jae 0x5eceb1
lea ecx, [ebp + 0x18]
push eax
push ecx
lea eax, [ebp + 0x48]
push 0x6c6dc8
push eax
call fcn.004654e1
add esp, 0x10
push 0
push ebx
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0xa
call fcn.004281f2
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 0x5ecee1
sub ecx, dword [ebp + 0x64]
push 0x2f
push edx
mov dword [ebp + 0x64], ecx
call fcn.00659190
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 0x5ecf1d
cmp dword [ebp + 0x5c], 8
jae 0x5ecf0f
lea eax, [ebp + 0x48]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jmp 0x5ecff2
cmp dword [ebp + 0x5c], 8
jae 0x5ecf26
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 0x5ecf81
push 0
lea eax, [ebp + 0x48]
push eax
call fcn.004606fb
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jae 0x5ecf5d
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 0x5ed152
mov eax, dword [esi]
push dword [ebp + 0x60]
mov dword [ebp + 0x3c], eax
lea eax, [ebp - 0xec]
push eax
call fcn.0047dfcb
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xc
jb 0x5ecfa1
mov eax, dword [eax]
lea ecx, [ebp + 0x38]
push ecx
push eax
push dword [ebp + 0x3c]
call fcn.00482e98
push 0
push ebx
lea ecx, [ebp - 0xec]
mov dword [ebp + 0x60], eax
mov byte [ebp - 4], 0xa
call fcn.004281f2
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 0x5ed1a8
push ebx
push dword [ebp + 0x60]
call fcn.004600c9
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.004281f2
mov edx, dword [ebp + 0x44]
inc edx
mov dword [ebp + 0x44], edx
cmp edx, dword [ebp + 0x14]
jne 0x5ece69
lea eax, [esi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x5ed01c
mov eax, dword [eax]
lea ecx, [ebp - 0x130]
push ecx
push eax
lea eax, [ebp - 0x104]
push str.BTAPPS__s__PAIRINGKEY__S_
push eax
call fcn.004654e1
add esp, 0x10
push dword [ebp + 0x70]
mov byte [ebp - 4], 0xe
push esi
call fcn.005ec5c1
call fcn.0047544b
lea ecx, [ebp - 0xa4]
call fcn.0061fbba
push dword [ebp - 0xa0]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [edi + 0x14], 8
jb 0x5ed069
mov edi, dword [edi]
lea eax, [esi + 0xdc]
cmp dword [eax + 0x14], 0x10
mov dword [ebp + 0x70], eax
jb 0x5ed07d
mov eax, dword [eax]
mov dword [ebp + 0x70], eax
push edi
call fcn.0047c721
push eax
push 0xffffffffffffffff
push dword [ebp + 0x70]
call fcn.0047c5e0
push eax
push 0x8020
push dword [0x7e2568]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, 0x6c111c
push edi
call fcn.00428460
pop ecx
push eax
push edi
lea ecx, [esi + 0x188]
call fcn.00438cfb
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x5ed0c4
mov esi, dword [esi]
push esi
call fcn.0046047f
push eax
lea ecx, [ebp]
call fcn.00429973
push str.install
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
call fcn.0040eeff
lea eax, [ebp]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x3c]
push eax
push ebx
call fcn.005ec857
xor edi, edi
lea ecx, [ebp - 0x3c]
push edi
push ebx
call fcn.0040f52f
push edi
push ebx
lea ecx, [ebp]
call fcn.004281f2
push edi
push ebx
lea ecx, [ebp - 0x104]
call fcn.004281f2
mov dword [ebp + 0x40], edi
push edi
push ebx
lea ecx, [ebp + 0x18]
call fcn.004281f2
push edi
push ebx
lea ecx, [ebp - 0x24]
call fcn.004281f2
lea ecx, [ebp - 0xa4]
call fcn.0061fac1
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 0x6e74fc
lea ecx, [ebp - 0x3c]
call fcn.0040eeff
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x3c]
xor edi, edi
push eax
push edi
call fcn.005ec857
push edi
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.0040f52f
sub esp, 0x18
lea eax, [esi + 4]
mov ecx, esp
push eax
call fcn.00427b8e
mov ecx, 0x7e1750
call fcn.005a79ee
push edi
push ebx
lea ecx, [ebp + 0x48]
call fcn.004281f2
jmp 0x5ece1d
push 0x71ac28
lea ecx, [ebp - 0x3c]
call fcn.0040eeff
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x3c]
xor edi, edi
push eax
push edi
call fcn.005ec857
push edi
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.0040f52f
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.004600c9
sub esp, 0x18
lea eax, [esi + 4]
mov ecx, esp
push eax
call fcn.00427b8e
mov ecx, 0x7e1750
call fcn.005a79ee
push edi
push ebx
lea ecx, [ebp + 0x48]
call fcn.004281f2
jmp 0x5ed11c