Function at 0x599bff
Capabilities:
Create directory
Move file

Disassembly:
mov eax, 0x67b9e3
call fcn.006313fc
sub esp, 0x90
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x84], ebx
push dword [0x73f7e8]
call fcn.0047f377
mov edi, eax
test edi, edi
je 0x599fc2
push edi
call fcn.0047e9e2
test al, al
jne 0x599c46
push edi
call fcn.0047e9aa
jmp 0x599fc2
push 0x68a6a4
lea eax, [esp + 0x8c]
push eax
call fcn.0046e883
cmp dword [esp + 0x9c], 8
mov eax, dword [esp + 0x88]
mov dword [esp + 0xa8], ebx
jae 0x599c77
lea eax, [esp + 0x88]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], ax
mov esi, ebx
mov dword [esp + 0x14], esi
mov ebp, ebx
mov byte [esp + 0xa8], 2
cmp dword [edi + 0x34], ebp
je 0x599f25
lea eax, [edi + 0x24]
push ebp
mov ecx, eax
call fcn.004f47a5
mov ebx, eax
cmp dword [ebx + 0x14], 0x10
jb 0x599cc0
mov ebx, dword [ebx]
push ebx
lea eax, [esp + 0x34]
push eax
call fcn.0047a1e1
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
mov byte [esp + 0xa8], 3
jae 0x599ce2
lea eax, [esp + 0x30]
push 0x68a484
push eax
call fcn.0047a3ed
test al, al
je 0x599eb4
lea eax, [esp + 0x4c]
push eax
push ebx
push edi
call fcn.004d929b
push 0
mov ebx, eax
lea eax, [esp + 0x54]
push 0x68a484
push eax
call fcn.0045ddbc
push eax
lea ecx, [esp + 0x1c]
call fcn.0044dbe6
push 0
push 1
lea ecx, [esp + 0x58]
call fcn.0042341c
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x599d3a
lea eax, [esp + 0x18]
push dword [esp + 0x4c]
push ebx
push eax
call fcn.0046111c
test al, al
je 0x599e85
and dword [esp + 0x60], 0
xor eax, eax
mov dword [esp + 0x64], 7
mov word [esp + 0x50], ax
lea eax, [esp + 0x50]
mov byte [esp + 0xa8], 4
push eax
sub esp, 0x18
lea eax, [esp + 0x34]
mov ecx, esp
push eax
call fcn.00422efb
lea eax, [esp + 0x64]
push eax
call fcn.00485fe7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xac], 5
call fcn.004857af
mov ecx, dword [esp + 0x48]
mov byte [esp + 0xa8], 4
test ecx, ecx
je 0x599dae
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x599e41
lea eax, [esi + 0xcc]
cmp dword [eax + 0x14], 0x10
jb 0x599dc8
mov eax, dword [eax]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.004804be
cmp dword [esp + 0x7c], 8
mov ecx, dword [esp + 0x68]
mov byte [esp + 0xa8], 6
jae 0x599dea
lea ecx, [esp + 0x68]
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x599df9
lea eax, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x599e32
cmp dword [esp + 0x7c], 8
mov ecx, dword [esp + 0x68]
jae 0x599e14
lea ecx, [esp + 0x68]
cmp dword [esp + 0x2c], 8
mov eax, dword [esp + 0x18]
jae 0x599e23
lea eax, [esp + 0x18]
push ecx
push eax
push str.Failed_to_install_bundled_btapp:__s_to:__s
call fcn.004790ad
add esp, 0xc
push 0
push 1
lea ecx, [esp + 0x70]
call fcn.0042341c
jmp 0x599e6e
cmp dword [esp + 0x64], 8
mov ecx, dword [esp + 0x50]
jae 0x599e50
lea ecx, [esp + 0x50]
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x599e5f
lea eax, [esp + 0x30]
push ecx
push eax
push str.Bundled_btapp___s__is_ill_formed:__s
call fcn.004790ad
add esp, 0xc
push 0
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0xb0], 3
call fcn.0042341c
jmp 0x599efb
cmp dword [esp + 0x2c], 8
mov ecx, dword [esp + 0x18]
jae 0x599e94
lea ecx, [esp + 0x18]
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x599ea3
lea eax, [esp + 0x30]
push ecx
push eax
push str.Failed_to_unpack_bundled_btapp:__s_to:__s
call fcn.004790ad
add esp, 0xc
jmp 0x599efb
push 0x6d9f14
call fcn.004236bc
pop ecx
push eax
push 0x6d9f14
push dword [esp + 0x48]
lea ecx, [esp + 0x3c]
push 0
call fcn.00434bba
test eax, eax
jne 0x599f03
lea eax, [esp + 0x10]
push eax
push ebx
push edi
call fcn.004d929b
cmp dword [esp + 0x10], 0
mov ebx, eax
je 0x599efb
test ebx, ebx
je 0x599efb
push dword [esp + 0x10]
push ebx
call fcn.0059a37c
push 1
push ebx
call fcn.0045d916
push 0
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0xb0], 2
call fcn.0042341c
inc ebp
lea eax, [edi + 0x24]
cmp ebp, dword [edi + 0x34]
jne 0x599cae
push edi
call fcn.0047e9aa
test esi, esi
je 0x599f44
lea eax, [esi + 0xcc]
push eax
lea ecx, [esp + 0x6c]
call fcn.0040a0c6
xor ebx, ebx
inc ebx
jmp 0x599f55
push 0x70522c
lea ecx, [esp + 0x54]
call fcn.00409ba7
push 2
pop ebx
push eax
mov ecx, 0x75fc8c
call fcn.00409822
test bl, 2
je 0x599f75
push 0
push 1
lea ecx, [esp + 0x58]
and ebx, 0xfffffffd
call fcn.0040a0e9
mov dword [esp + 0xa8], 2
test bl, 1
je 0x599f92
push 0
push 1
lea ecx, [esp + 0x70]
call fcn.0040a0e9
mov byte [esp + 0xa8], 1
test esi, esi
je 0x599fa5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0
push 1
lea ecx, [esp + 0x20]
call fcn.0042341c
push 0
push 1
lea ecx, [esp + 0x90]
call fcn.0042341c
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret