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

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x6ab372
call fcn.006375a8
sub esp, 0x124
push esi
mov esi, ecx
push edi
mov dword [ebp + 0x64], esi
lea edi, [esi + 0x16c]
push edi
call fcn.00482679
push dword [0x79512c]
mov ecx, edi
call fcn.00437471
test eax, eax
jne 0x5e537e
call fcn.005ed9df
test al, al
je 0x5e537e
push dword [ebp + 0x70]
push esi
call fcn.005e4daf
cmp dword [edi + 0x14], 8
jb 0x5e5345
mov edi, dword [edi]
add esi, 0xdc
cmp dword [esi + 0x14], 0x10
jb 0x5e5353
mov esi, dword [esi]
push edi
call fcn.0047970a
push eax
push 0xffffffffffffffff
push esi
call fcn.004795c9
push eax
push 0x8020
push dword [0x7d3ed8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 0x666
jmp 0x5e58ab
push dword [0x795138]
mov ecx, edi
call fcn.00437471
test eax, eax
jne 0x5e539e
push 0x2710
mov ecx, 0x7a43e0
call fcn.005008e7
push ebx
push dword [0x795130]
mov ecx, edi
call fcn.00437471
or dword [ebp + 0x40], 0xffffffff
xor ebx, ebx
inc ebx
test eax, eax
jne 0x5e53de
call fcn.005d26a6
test eax, eax
je 0x5e546f
mov ecx, dword [0x7b0950]
push 0x2710
call fcn.005d25b0
test al, al
jne 0x5e546f
jmp 0x5e5456
lea eax, [esi + 0xf4]
cmp dword [eax + 0x10], 0
je 0x5e546f
push eax
lea eax, [ebp + 0x48]
push eax
call fcn.0043ee34
and dword [ebp - 4], 0
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jae 0x5e5408
lea eax, [ebp + 0x48]
mov dword [ebp + 0x30], eax
lea eax, [ebp + 0x30]
push eax
mov dword [ebp + 0x34], 0x70fa40
call fcn.0046116d
test al, al
je 0x5e5460
push str.inprocess
lea ecx, [ebp]
call fcn.0040d4cf
lea eax, [esi + 4]
xor ebx, ebx
push eax
lea eax, [ebp]
xor esi, esi
push eax
inc ebx
push esi
mov byte [ebp - 4], bl
call fcn.005e5045
push esi
push ebx
lea ecx, [ebp]
call fcn.0040daff
push esi
push ebx
lea ecx, [ebp + 0x48]
call fcn.004267c2
mov eax, 0x666
jmp 0x5e58aa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x48]
push 0
push ebx
call fcn.004267c2
lea ecx, [ebp - 0xa4]
call fcn.00616f18
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.0058adeb
lea ecx, [ebp - 0xa4]
call fcn.0061700c
push 0x14
lea eax, [ebp - 0x5c]
push eax
call fcn.0046ac0b
lea eax, [ebp - 0x5c]
push eax
push 0x29
lea eax, [ebp - 0x130]
push eax
call fcn.0046e7cf
lea eax, [esi + 0x34]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0042615e
cmp dword [ebp - 0x2c], 0
mov byte [ebp - 4], 3
jne 0x5e5514
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x5e54e3
mov eax, dword [esi]
jmp 0x5e54e5
mov eax, esi
push 0x5c
push eax
call fcn.006523db
pop ecx
pop ecx
test eax, eax
je 0x5e54f8
lea esi, [eax + 2]
jmp 0x5e5500
cmp dword [esi + 0x14], 8
jb 0x5e5500
mov esi, dword [esi]
push esi
call fcn.00426a30
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3c]
call fcn.004372ba
mov esi, dword [ebp + 0x64]
cmp dword [edi + 0x14], 8
jb 0x5e551e
mov ecx, dword [edi]
jmp 0x5e5520
mov ecx, edi
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
jae 0x5e552c
lea eax, [ebp - 0x3c]
push ecx
or ecx, 0xffffffff
push ecx
push ecx
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0047badf
lea eax, [esi + 0x10c]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.0043ee34
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 4
jb 0x5e555b
mov eax, dword [eax]
push eax
push 0x79ef80
lea eax, [ebp + 0x18]
push 0x6bcb20
push eax
call fcn.004638e7
add esp, 0x10
push 0
push ebx
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 6
call fcn.004267c2
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
jae 0x5e5590
lea eax, [ebp + 0x18]
push eax
call fcn.0045f286
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
jae 0x5e55a2
lea eax, [ebp + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov esi, dword [esi]
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x24]
call fcn.00423008
lea eax, [ebp + 0xc]
push eax
lea ecx, [esi + 0x24]
call fcn.00422ff0
mov edx, dword [ebp - 0x40]
mov esi, dword [ebp + 0x64]
jmp 0x5e576c
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x5e55d9
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 0x5e55f3
mov eax, dword [eax]
mov dword [ebp + 0x60], eax
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.0047af87
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 7
jb 0x5e560c
mov eax, dword [eax]
cmp dword [ebp + 0x2c], 8
mov ecx, dword [ebp + 0x18]
jae 0x5e5618
lea ecx, [ebp + 0x18]
push eax
push ecx
lea eax, [ebp + 0x48]
push 0x6bcb20
push eax
call fcn.004638e7
add esp, 0x10
push 0
push ebx
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 9
call fcn.004267c2
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 0x5e5648
sub ecx, dword [ebp + 0x64]
push 0x2f
push edx
mov dword [ebp + 0x64], ecx
call fcn.006504e0
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 0x5e5684
cmp dword [ebp + 0x5c], 8
jae 0x5e5676
lea eax, [ebp + 0x48]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
jmp 0x5e5759
cmp dword [ebp + 0x5c], 8
jae 0x5e568d
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 0x5e56e8
push 0
lea eax, [ebp + 0x48]
push eax
call fcn.0045eb63
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jae 0x5e56c4
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 0x5e58be
mov eax, dword [esi]
push dword [ebp + 0x60]
mov dword [ebp + 0x3c], eax
lea eax, [ebp - 0xec]
push eax
call fcn.0047af87
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xb
jb 0x5e5708
mov eax, dword [eax]
lea ecx, [ebp + 0x38]
push ecx
push eax
push dword [ebp + 0x3c]
call fcn.0047fea2
push 0
push ebx
lea ecx, [ebp - 0xec]
mov dword [ebp + 0x60], eax
mov byte [ebp - 4], 9
call fcn.004267c2
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 0x5e5917
push ebx
push dword [ebp + 0x60]
call fcn.0045e47c
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.004267c2
mov edx, dword [ebp + 0x44]
inc edx
mov dword [ebp + 0x44], edx
cmp edx, dword [ebp + 0x14]
jne 0x5e55d0
lea eax, [esi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x5e5783
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.004638e7
add esp, 0x10
push dword [ebp + 0x70]
mov byte [ebp - 4], 0xd
push esi
call fcn.005e4daf
call fcn.004729a5
lea ecx, [ebp - 0xa4]
call fcn.00617053
push dword [ebp - 0xa0]
call dword [sym.imp.USER32.dll_DestroyWindow]
call fcn.0040c884
cmp dword [edi + 0x14], 8
jb 0x5e57d5
mov edi, dword [edi]
lea eax, [esi + 0xdc]
cmp dword [eax + 0x14], 0x10
mov dword [ebp + 0x70], eax
jb 0x5e57e9
mov eax, dword [eax]
mov dword [ebp + 0x70], eax
push edi
call fcn.0047970a
push eax
push 0xffffffffffffffff
push dword [ebp + 0x70]
call fcn.004795c9
push eax
push 0x8020
push dword [0x7d3ed8]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, 0x6b6e68
push edi
call fcn.00426a30
pop ecx
push eax
push edi
lea ecx, [esi + 0x188]
call fcn.004372ba
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x5e5830
mov esi, dword [esi]
push esi
call fcn.0045e8e7
push eax
lea ecx, [ebp]
call fcn.00427f43
push str.install
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xe
call fcn.0040d4cf
lea eax, [ebp]
mov byte [ebp - 4], 0xf
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.005e5045
xor esi, esi
lea ecx, [ebp - 0x24]
push esi
push ebx
call fcn.0040daff
push esi
push ebx
lea ecx, [ebp]
call fcn.004267c2
push esi
push ebx
lea ecx, [ebp - 0x104]
call fcn.004267c2
mov dword [ebp + 0x40], esi
push esi
push ebx
lea ecx, [ebp + 0x18]
call fcn.004267c2
push esi
push ebx
lea ecx, [ebp - 0x3c]
call fcn.004267c2
lea ecx, [ebp - 0xa4]
call fcn.00616f5a
mov eax, dword [ebp + 0x40]
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
lea esp, [ebp + 0x68]
pop ebp
ret 4
push 0x6dcc04
lea ecx, [ebp - 0x24]
call fcn.0040d4cf
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x24]
xor esi, esi
push eax
push esi
call fcn.005e5045
push esi
push ebx
lea ecx, [ebp - 0x24]
call fcn.0040daff
push esi
push ebx
lea ecx, [ebp + 0x48]
call fcn.004267c2
push esi
push ebx
lea ecx, [ebp + 0x18]
call fcn.004267c2
push esi
push ebx
lea ecx, [ebp - 0x3c]
call fcn.004267c2
lea ecx, [ebp - 0xa4]
call fcn.00616f5a
or eax, 0xffffffff
jmp 0x5e58aa
push 0x70fa74
lea ecx, [ebp - 0x24]
call fcn.0040d4cf
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x24]
xor esi, esi
push eax
push esi
call fcn.005e5045
push esi
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 9
call fcn.0040daff
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.0045e47c
push esi
push ebx
lea ecx, [ebp + 0x48]
call fcn.004267c2
jmp 0x5e5888