Function at 0x5b1e09
Capabilities:
Create directory
Move file

Disassembly:
push ebp
sub esp, 0x6c
mov eax, 0x6bd416
call fcn.00664608
sub esp, 0x34
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
push dword [0x791bb0]
call fcn.0047a0cb
mov edi, eax
test edi, edi
je 0x5b224f
push edi
call fcn.00479757
test al, al
jne 0x5b1e4c
push edi
call fcn.00479726
jmp 0x5b224f
push 0x6ced1c
lea eax, [ebp - 0x40]
push eax
call fcn.0046665e
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ebx
jb 0x5b1e69
mov eax, dword [ebp - 0x40]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
xor eax, eax
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x60], 7
mov word [ebp + 0x4c], ax
mov esi, ebx
mov dword [ebp + 0x30], esi
mov edx, ebx
mov byte [ebp - 4], 2
xor ebx, ebx
inc ebx
cmp dword [edi + 0x38], edx
jmp 0x5b20fd
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x30]
mov dword [ebp + 0x10], eax
dec ecx
add eax, edx
and ecx, eax
mov eax, dword [edi + 0x2c]
mov ebx, dword [eax + ecx*4]
cmp dword [ebx + 0x14], 0x10
jb 0x5b1eb6
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.00471937
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
jb 0x5b1ed0
mov eax, dword [ebp - 0x24]
push 0x6ceafc
push eax
call fcn.00471b86
test al, al
je 0x5b20ae
lea eax, [ebp + 4]
push eax
push ebx
push edi
call fcn.004bea1c
push 0
mov ebx, eax
lea eax, [ebp + 0x14]
push 0x6ceafc
push eax
mov dword [ebp + 0x10], ebx
call fcn.004518bd
lea ecx, [ebp + 0x4c]
cmp ecx, eax
je 0x5b1f17
mov byte [ebp + 8], 0
push dword [ebp + 8]
push eax
call fcn.00427ad3
lea ecx, [ebp + 0x14]
call fcn.00427afc
cmp dword [ebp + 0x60], 8
lea eax, [ebp + 0x4c]
jb 0x5b1f2b
mov eax, dword [ebp + 0x4c]
push dword [ebp + 4]
push ebx
push eax
call fcn.00455877
test al, al
je 0x5b2079
xor edx, edx
mov dword [ebp + 0x48], 7
xor eax, eax
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x44], edx
mov word [ebp + 0x34], ax
lea eax, [ebp + 0x34]
mov byte [ebp - 4], 4
push eax
sub esp, 0x18
lea eax, [ebp + 0x4c]
mov ecx, esp
push eax
mov dword [ecx], edx
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], edx
call fcn.00427a37
lea eax, [ebp]
push eax
call fcn.0047f087
push eax
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 5
call fcn.0047e55e
mov ecx, dword [ebp]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x5b1f96
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x30]
mov byte [ebp - 4], 4
test esi, esi
je 0x5b2011
lea eax, [esi + 0xcc]
cmp dword [eax + 0x14], 0x10
jb 0x5b1faf
mov eax, dword [eax]
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.00472c18
push 8
pop ebx
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 7
cmp dword [ebp + 0x28], ebx
jb 0x5b1fcb
mov ecx, dword [ebp + 0x14]
lea eax, [ebp + 0x4c]
cmp dword [ebp + 0x60], ebx
jb 0x5b1fd6
mov eax, dword [ebp + 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x5b2007
lea ecx, [ebp + 0x14]
cmp dword [ebp + 0x28], ebx
jb 0x5b1fed
mov ecx, dword [ebp + 0x14]
lea eax, [ebp + 0x4c]
cmp dword [ebp + 0x60], ebx
jb 0x5b1ff8
mov eax, dword [ebp + 0x4c]
push ecx
push eax
push str.Failed_to_install_bundled
call fcn.004704f0
add esp, 0xc
lea ecx, [ebp + 0x14]
call fcn.00427afc
jmp 0x5b2039
push 8
pop ebx
lea ecx, [ebp + 0x34]
cmp dword [ebp + 0x48], ebx
jb 0x5b201f
mov ecx, dword [ebp + 0x34]
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], ebx
jb 0x5b202a
mov eax, dword [ebp - 0x24]
push ecx
push eax
push str.Bundled_btapp___s__is_ill_formed:__s
call fcn.004704f0
add esp, 0xc
mov eax, dword [ebp + 0x48]
mov byte [ebp - 4], 3
cmp eax, ebx
jb 0x5b20a0
mov ecx, dword [ebp + 0x34]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x64], ecx
cmp eax, 0x1000
jb 0x5b206e
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x64]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x64]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
jmp 0x5b20a0
cmp dword [ebp + 0x60], 8
lea ecx, [ebp + 0x4c]
jb 0x5b2085
mov ecx, dword [ebp + 0x4c]
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
jb 0x5b2091
mov eax, dword [ebp - 0x24]
push ecx
push eax
push str.Failed_to_unpack_bundled
call fcn.004704f0
add esp, 0xc
xor ebx, ebx
inc ebx
push ebx
push dword [ebp + 0x10]
call fcn.004513a7
jmp 0x5b20ea
push 0x71f504
lea ecx, [ebp - 0x24]
call fcn.00436e07
test al, al
je 0x5b20e7
lea eax, [ebp + 0x6c]
push eax
push ebx
push edi
call fcn.004bea1c
cmp dword [ebp + 0x6c], 0
mov ebx, eax
je 0x5b20df
test ebx, ebx
je 0x5b20df
push dword [ebp + 0x6c]
push ebx
call fcn.005b25db
push 1
push ebx
call fcn.004513a7
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00427afc
mov edx, dword [ebp + 0x68]
inc edx
cmp edx, dword [edi + 0x38]
mov dword [ebp + 0x68], edx
jne 0x5b1e9a
push edi
call fcn.00479726
push 0xf
pop edi
test esi, esi
je 0x5b2132
xor ecx, ecx
lea eax, [esi + 0xcc]
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x24], ecx
mov dword [ebp + 0x28], ecx
lea ecx, [ebp + 0x14]
push eax
call fcn.00410794
lea eax, [ebp + 0x14]
jmp 0x5b2151
xor eax, eax
mov dword [ebp + 0x48], edi
push eax
push 0x7526ce
lea ecx, [ebp + 0x34]
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x44], eax
call fcn.00410407
push 2
lea eax, [ebp + 0x34]
pop ebx
mov byte [ebp + 0x10], 0
mov ecx, 0x7b6b60
push dword [ebp + 0x10]
push eax
call fcn.004100a8
test bl, 2
je 0x5b21ab
mov eax, dword [ebp + 0x48]
and ebx, 0xfffffffd
cmp eax, 0x10
jb 0x5b21a0
mov ecx, dword [ebp + 0x34]
inc eax
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], ecx
cmp eax, 0x1000
jb 0x5b2197
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
and dword [ebp + 0x44], 0
mov dword [ebp + 0x48], edi
mov byte [ebp + 0x34], 0
mov dword [ebp - 4], 2
test bl, 1
je 0x5b21ec
mov eax, dword [ebp + 0x28]
cmp eax, 0x10
jb 0x5b21ec
mov ecx, dword [ebp + 0x14]
inc eax
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], ecx
cmp eax, 0x1000
jb 0x5b21e3
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
mov byte [ebp - 4], 9
test esi, esi
je 0x5b21fb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp + 0x60]
cmp eax, 8
jb 0x5b2236
mov ecx, dword [ebp + 0x4c]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], ecx
cmp eax, 0x1000
jb 0x5b222d
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.004279ae
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.006643a9
pop ecx
pop ecx
and dword [ebp + 0x5c], 0
lea ecx, [ebp - 0x40]
xor eax, eax
mov dword [ebp + 0x60], 7
mov word [ebp + 0x4c], ax
call fcn.00427afc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x70
leave
ret