Function at 0x58f6a9
Capabilities:
Create directory
Move file

Disassembly:
push ebp
sub esp, 0x74
mov eax, 0x680135
call fcn.0062921c
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp], ebx
push dword [0x74cdd0]
call fcn.0047d674
mov edi, eax
test edi, edi
je 0x58f9df
push edi
call fcn.0047cd80
test al, al
jne 0x58f6ec
push edi
call fcn.0047cd45
jmp 0x58f9df
push 0x68f734
lea eax, [ebp - 0x28]
push eax
call fcn.0046dfa2
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], ebx
jae 0x58f709
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 0x58f953
lea ecx, [edi + 0x24]
push eax
call fcn.004f2484
mov ebx, eax
cmp dword [ebx + 0x14], 0x10
jb 0x58f74b
mov ebx, dword [ebx]
push ebx
lea eax, [ebp + 0x34]
push eax
call fcn.004785a1
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
mov byte [ebp - 4], 3
jae 0x58f765
lea eax, [ebp + 0x34]
push 0x68f514
push eax
call fcn.004787ad
test al, al
je 0x58f8f7
lea eax, [ebp + 0x50]
push eax
push ebx
push edi
call fcn.0057505f
push 0
mov ebx, eax
lea eax, [ebp + 0x1c]
push 0x68f514
push eax
call fcn.0045b92c
push eax
lea ecx, [ebp + 0x54]
call fcn.004232e6
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.0042386b
cmp dword [ebp + 0x68], 8
mov eax, dword [ebp + 0x54]
jae 0x58f7b6
lea eax, [ebp + 0x54]
push dword [ebp + 0x50]
push ebx
push eax
call fcn.0045e9f0
test al, al
je 0x58f8ce
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.00423207
lea eax, [ebp + 0x4c]
push eax
call fcn.0048400b
push eax
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], 5
call fcn.00483788
mov ecx, dword [ebp + 0x4c]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x58f815
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x74]
mov byte [ebp - 4], 4
test esi, esi
je 0x58f895
lea eax, [esi + 0xcc]
cmp dword [eax + 0x14], 0x10
jb 0x58f82e
mov eax, dword [eax]
push eax
lea eax, [ebp + 4]
push eax
call fcn.0047e868
cmp dword [ebp + 0x18], 8
mov ecx, dword [ebp + 4]
mov byte [ebp - 4], 7
jae 0x58f848
lea ecx, [ebp + 4]
cmp dword [ebp + 0x68], 8
mov eax, dword [ebp + 0x54]
jae 0x58f854
lea eax, [ebp + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x58f887
cmp dword [ebp + 0x18], 8
mov ecx, dword [ebp + 4]
jae 0x58f86c
lea ecx, [ebp + 4]
cmp dword [ebp + 0x68], 8
mov eax, dword [ebp + 0x54]
jae 0x58f878
lea eax, [ebp + 0x54]
push ecx
push eax
push str.Failed_to_install_bundled_btapp:__s_to:__s
call fcn.00477256
add esp, 0xc
push 0
push 1
lea ecx, [ebp + 4]
call fcn.0042386b
jmp 0x58f8bc
cmp dword [ebp + 0x30], 8
mov ecx, dword [ebp + 0x1c]
jae 0x58f8a1
lea ecx, [ebp + 0x1c]
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
jae 0x58f8ad
lea eax, [ebp + 0x34]
push ecx
push eax
push str.Bundled_btapp___s__is_ill_formed:__s
call fcn.00477256
add esp, 0xc
push 0
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.0042386b
jmp 0x58f928
cmp dword [ebp + 0x68], 8
mov ecx, dword [ebp + 0x54]
jae 0x58f8da
lea ecx, [ebp + 0x54]
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
jae 0x58f8e6
lea eax, [ebp + 0x34]
push ecx
push eax
push str.Failed_to_unpack_bundled_btapp:__s_to:__s
call fcn.00477256
add esp, 0xc
jmp 0x58f928
push 0x6de7ac
lea ecx, [ebp + 0x34]
call fcn.0043429b
test eax, eax
jne 0x58f930
lea eax, [ebp + 0x70]
push eax
push ebx
push edi
call fcn.0057505f
cmp dword [ebp + 0x70], 0
mov ebx, eax
je 0x58f928
test ebx, ebx
je 0x58f928
push dword [ebp + 0x70]
push ebx
call fcn.0058fd2f
push 1
push ebx
call fcn.0045b404
push 0
push 1
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 2
call fcn.0042386b
mov eax, dword [ebp + 0x6c]
lea ecx, [edi + 0x24]
inc eax
mov dword [ebp + 0x6c], eax
cmp eax, dword [edi + 0x34]
jne 0x58f73b
push edi
call fcn.0047cd45
test esi, esi
je 0x58f971
lea eax, [esi + 0xcc]
push eax
lea ecx, [ebp + 4]
call fcn.0040ab3b
xor ebx, ebx
inc ebx
jmp 0x58f981
push 0x70ed3c
lea ecx, [ebp + 0x1c]
call fcn.0040a58f
push 2
pop ebx
push eax
mov ecx, 0x76d4dc
call fcn.0040a1e2
test bl, 2
je 0x58f9a0
push 0
push 1
lea ecx, [ebp + 0x1c]
and ebx, 0xfffffffd
call fcn.0040abbf
mov dword [ebp - 4], 2
test bl, 1
je 0x58f9b8
push 0
push 1
lea ecx, [ebp + 4]
call fcn.0040abbf
mov byte [ebp - 4], 9
test esi, esi
je 0x58f9c7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0
push 1
lea ecx, [ebp + 0x54]
call fcn.0042386b
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0042386b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x78]
pop ebp
ret