Function at 0x5a2d9a
Capabilities:
Create directory
Move file

Disassembly:
push ebp
sub esp, 0x74
mov eax, 0x6b2031
call fcn.006426c4
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp], ebx
push dword [0x78d848]
call fcn.00483993
mov edi, eax
test edi, edi
je 0x5a30d0
push edi
call fcn.004830f7
test al, al
jne 0x5a2ddd
push edi
call fcn.004830bc
jmp 0x5a30d0
push 0x6c4d54
lea eax, [ebp - 0x28]
push eax
call fcn.00473f1c
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], ebx
jae 0x5a2dfa
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 0x5a3044
lea ecx, [edi + 0x24]
push eax
call fcn.0053d231
mov ebx, eax
cmp dword [ebx + 0x14], 0x10
jb 0x5a2e3c
mov ebx, dword [ebx]
push ebx
lea eax, [ebp + 0x34]
push eax
call fcn.0047e93b
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
mov byte [ebp - 4], 3
jae 0x5a2e56
lea eax, [ebp + 0x34]
push 0x6c4b34
push eax
call fcn.0047eb47
test al, al
je 0x5a2fe8
lea eax, [ebp + 0x50]
push eax
push ebx
push edi
call fcn.005a35df
push 0
mov ebx, eax
lea eax, [ebp + 0x1c]
push 0x6c4b34
push eax
call fcn.00460dc6
push eax
lea ecx, [ebp + 0x54]
call fcn.00428071
push 0
push 1
lea ecx, [ebp + 0x1c]
call fcn.004285f6
cmp dword [ebp + 0x68], 8
mov eax, dword [ebp + 0x54]
jae 0x5a2ea7
lea eax, [ebp + 0x54]
push dword [ebp + 0x50]
push ebx
push eax
call fcn.00463f7b
test al, al
je 0x5a2fbf
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.00427fbe
lea eax, [ebp + 0x4c]
push eax
call fcn.0048a853
push eax
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], 5
call fcn.00489fd0
mov ecx, dword [ebp + 0x4c]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x5a2f06
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x74]
mov byte [ebp - 4], 4
test esi, esi
je 0x5a2f86
lea eax, [esi + 0xcc]
cmp dword [eax + 0x14], 0x10
jb 0x5a2f1f
mov eax, dword [eax]
push eax
lea eax, [ebp + 4]
push eax
call fcn.00484ac4
cmp dword [ebp + 0x18], 8
mov ecx, dword [ebp + 4]
mov byte [ebp - 4], 7
jae 0x5a2f39
lea ecx, [ebp + 4]
cmp dword [ebp + 0x68], 8
mov eax, dword [ebp + 0x54]
jae 0x5a2f45
lea eax, [ebp + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x5a2f78
cmp dword [ebp + 0x18], 8
mov ecx, dword [ebp + 4]
jae 0x5a2f5d
lea ecx, [ebp + 4]
cmp dword [ebp + 0x68], 8
mov eax, dword [ebp + 0x54]
jae 0x5a2f69
lea eax, [ebp + 0x54]
push ecx
push eax
push str.Failed_to_install_bundled
call fcn.0047d5f0
add esp, 0xc
push 0
push 1
lea ecx, [ebp + 4]
call fcn.004285f6
jmp 0x5a2fad
cmp dword [ebp + 0x30], 8
mov ecx, dword [ebp + 0x1c]
jae 0x5a2f92
lea ecx, [ebp + 0x1c]
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
jae 0x5a2f9e
lea eax, [ebp + 0x34]
push ecx
push eax
push str.Bundled_btapp___s__is_ill_formed:__s
call fcn.0047d5f0
add esp, 0xc
push 0
push 1
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 3
call fcn.004285f6
jmp 0x5a3019
cmp dword [ebp + 0x68], 8
mov ecx, dword [ebp + 0x54]
jae 0x5a2fcb
lea ecx, [ebp + 0x54]
cmp dword [ebp + 0x48], 8
mov eax, dword [ebp + 0x34]
jae 0x5a2fd7
lea eax, [ebp + 0x34]
push ecx
push eax
push str.Failed_to_unpack_bundled
call fcn.0047d5f0
add esp, 0xc
jmp 0x5a3019
push 0x71531c
lea ecx, [ebp + 0x34]
call fcn.004392ec
test eax, eax
jne 0x5a3021
lea eax, [ebp + 0x70]
push eax
push ebx
push edi
call fcn.005a35df
cmp dword [ebp + 0x70], 0
mov ebx, eax
je 0x5a3019
test ebx, ebx
je 0x5a3019
push dword [ebp + 0x70]
push ebx
call fcn.005a3420
push 1
push ebx
call fcn.00460614
push 0
push 1
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 2
call fcn.004285f6
mov eax, dword [ebp + 0x6c]
lea ecx, [edi + 0x24]
inc eax
mov dword [ebp + 0x6c], eax
cmp eax, dword [edi + 0x34]
jne 0x5a2e2c
push edi
call fcn.004830bc
test esi, esi
je 0x5a3062
lea eax, [esi + 0xcc]
push eax
lea ecx, [ebp + 4]
call fcn.0040f8db
xor ebx, ebx
inc ebx
jmp 0x5a3072
push 0x7479ec
lea ecx, [ebp + 0x1c]
call fcn.0040f32f
push 2
pop ebx
push eax
mov ecx, 0x7b13b8
call fcn.0040ef82
test bl, 2
je 0x5a3091
push 0
push 1
lea ecx, [ebp + 0x1c]
and ebx, 0xfffffffd
call fcn.0040f95f
mov dword [ebp - 4], 2
test bl, 1
je 0x5a30a9
push 0
push 1
lea ecx, [ebp + 4]
call fcn.0040f95f
mov byte [ebp - 4], 9
test esi, esi
je 0x5a30b8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0
push 1
lea ecx, [ebp + 0x54]
call fcn.004285f6
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004285f6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x78]
pop ebp
ret