Function at 0x5a15e3
Capabilities:
Create directory
Move file

Disassembly:
push ebp
sub esp, 0x74
mov eax, 0x6afc4f
call fcn.00640244
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp], ebx
push dword [0x789830]
call fcn.0048342b
mov edi, eax
test edi, edi
je 0x5a1919
push edi
call fcn.00482b8f
test al, al
jne 0x5a1626
push edi
call fcn.00482b54
jmp 0x5a1919
push 0x6c1cd4
lea eax, [ebp - 0x28]
push eax
call fcn.0047354f
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], ebx
jae 0x5a1643
lea eax, [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
xor eax, eax
mov dword [ebp + 0x68], 7
mov dword [ebp + 0x64], ebx
mov word [ebp + 0x54], ax
mov esi, ebx
mov dword [ebp + 0x74], esi
mov eax, ebx
mov byte [ebp - 4], 2
mov dword [ebp + 0x6c], eax
cmp dword [edi + 0x34], eax
je 0x5a188d
lea ecx, [edi + 0x24]
push eax
call fcn.004f038d
mov ebx, eax
cmp dword [ebx + 0x14], 0x10
jb 0x5a1685
mov ebx, dword [ebx]
push ebx
lea eax, [ebp + 0x34]
push eax
call fcn.0047dfcb
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
mov byte [ebp - 4], 3
jae 0x5a169f
lea eax, [ebp + 0x34]
push 0x6c1ab4
push eax
call fcn.0047e1d7
test al, al
je 0x5a1831
lea eax, [ebp + 0x50]
push eax
push ebx
push edi
call fcn.005a1e28
push 0
mov ebx, eax
lea eax, [ebp + 0x1c]
push 0x6c1ab4
push eax
call fcn.0046059a
push eax
lea ecx, [ebp + 0x54]
call fcn.00427c6d
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.004281f2
cmp dword [ebp + 0x68], 8
mov eax, dword [ebp + 0x54]
jae 0x5a16f0
lea eax, [ebp + 0x54]
push dword [ebp + 0x50]
push ebx
push eax
call fcn.004636dd
test al, al
je 0x5a1808
and dword [ebp + 0x2c], 0
xor eax, eax
mov dword [ebp + 0x30], 7
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1c]
mov byte [ebp - 4], 4
push eax
sub esp, 0x18
lea eax, [ebp + 0x54]
mov ecx, esp
push eax
call fcn.00427b8e
lea eax, [ebp + 0x4c]
push eax
call fcn.0048a588
push eax
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], 5
call fcn.00489d05
mov ecx, dword [ebp + 0x4c]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x5a174f
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x74]
mov byte [ebp - 4], 4
test esi, esi
je 0x5a17cf
lea eax, [esi + 0xcc]
cmp dword [eax + 0x14], 0x10
jb 0x5a1768
mov eax, dword [eax]
push eax
lea eax, [ebp + 4]
push eax
call fcn.00484606
cmp dword [ebp + 0x18], 8
mov ecx, dword [ebp + 4]
mov byte [ebp - 4], 7
jae 0x5a1782
lea ecx, [ebp + 4]
cmp dword [ebp + 0x68], 8
mov eax, dword [ebp + 0x54]
jae 0x5a178e
lea eax, [ebp + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x5a17c1
cmp dword [ebp + 0x18], 8
mov ecx, dword [ebp + 4]
jae 0x5a17a6
lea ecx, [ebp + 4]
cmp dword [ebp + 0x68], 8
mov eax, dword [ebp + 0x54]
jae 0x5a17b2
lea eax, [ebp + 0x54]
push ecx
push eax
push str.Failed_to_install_bundled_btapp:__s_to:__s
call fcn.0047cc80
add esp, 0xc
push 0
push 1
lea ecx, [ebp + 4]
call fcn.004281f2
jmp 0x5a17f6
cmp dword [ebp + 0x30], 8
mov ecx, dword [ebp + 0x1c]
jae 0x5a17db
lea ecx, [ebp + 0x1c]
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
jae 0x5a17e7
lea eax, [ebp + 0x34]
push ecx
push eax
push str.Bundled_btapp___s__is_ill_formed:__s
call fcn.0047cc80
add esp, 0xc
push 0
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.004281f2
jmp 0x5a1862
cmp dword [ebp + 0x68], 8
mov ecx, dword [ebp + 0x54]
jae 0x5a1814
lea ecx, [ebp + 0x54]
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
jae 0x5a1820
lea eax, [ebp + 0x34]
push ecx
push eax
push str.Failed_to_unpack_bundled_btapp:__s_to:__s
call fcn.0047cc80
add esp, 0xc
jmp 0x5a1862
push 0x7120fc
lea ecx, [ebp + 0x34]
call fcn.00438eb2
test eax, eax
jne 0x5a186a
lea eax, [ebp + 0x70]
push eax
push ebx
push edi
call fcn.005a1e28
cmp dword [ebp + 0x70], 0
mov ebx, eax
je 0x5a1862
test ebx, ebx
je 0x5a1862
push dword [ebp + 0x70]
push ebx
call fcn.005a1c69
push 1
push ebx
call fcn.004600c9
push 0
push 1
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 2
call fcn.004281f2
mov eax, dword [ebp + 0x6c]
lea ecx, [edi + 0x24]
inc eax
mov dword [ebp + 0x6c], eax
cmp eax, dword [edi + 0x34]
jne 0x5a1675
push edi
call fcn.00482b54
test esi, esi
je 0x5a18ab
lea eax, [esi + 0xcc]
push eax
lea ecx, [ebp + 4]
call fcn.0040f4ab
xor ebx, ebx
inc ebx
jmp 0x5a18bb
push 0x74471c
lea ecx, [ebp + 0x1c]
call fcn.0040eeff
push 2
pop ebx
push eax
mov ecx, 0x7ad198
call fcn.0040eb52
test bl, 2
je 0x5a18da
push 0
push 1
lea ecx, [ebp + 0x1c]
and ebx, 0xfffffffd
call fcn.0040f52f
mov dword [ebp - 4], 2
test bl, 1
je 0x5a18f2
push 0
push 1
lea ecx, [ebp + 4]
call fcn.0040f52f
mov byte [ebp - 4], 9
test esi, esi
je 0x5a1901
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0
push 1
lea ecx, [ebp + 0x54]
call fcn.004281f2
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004281f2
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x78]
pop ebp
ret