Function at 0x5d3a35
Capabilities:
Create directory
Move file

Disassembly:
push ebp
sub esp, 0x6c
mov eax, 0x6e59c7
call fcn.006899cc
sub esp, 0x34
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
push dword [0x7c0bd0]
call fcn.004985b6
mov edi, eax
test edi, edi
je 0x5d3e7b
push edi
call fcn.00497c52
test al, al
jne 0x5d3a78
push edi
call fcn.00497c2d
jmp 0x5d3e7b
push 0x6f6c7c
lea eax, [ebp - 0x40]
push eax
call fcn.004848ce
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ebx
jb 0x5d3a95
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 0x5d3d29
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 0x5d3ae2
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x24]
push eax
call fcn.0048fdc9
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
jb 0x5d3afc
mov eax, dword [ebp - 0x24]
push 0x6f6a5c
push eax
call fcn.00490018
test al, al
je 0x5d3cda
lea eax, [ebp + 4]
push eax
push ebx
push edi
call fcn.004de1be
push 0
mov ebx, eax
lea eax, [ebp + 0x14]
push 0x6f6a5c
push eax
mov dword [ebp + 0x10], ebx
call fcn.0046f6b4
lea ecx, [ebp + 0x4c]
cmp ecx, eax
je 0x5d3b43
mov byte [ebp + 8], 0
push dword [ebp + 8]
push eax
call fcn.00448215
lea ecx, [ebp + 0x14]
call fcn.0044823e
cmp dword [ebp + 0x60], 8
lea eax, [ebp + 0x4c]
jb 0x5d3b57
mov eax, dword [ebp + 0x4c]
push dword [ebp + 4]
push ebx
push eax
call fcn.0047369e
test al, al
je 0x5d3ca5
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.00448193
lea eax, [ebp]
push eax
call fcn.0049d56e
push eax
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 5
call fcn.0049ca37
mov ecx, dword [ebp]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x5d3bc2
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x30]
mov byte [ebp - 4], 4
test esi, esi
je 0x5d3c3d
lea eax, [esi + 0xcc]
cmp dword [eax + 0x14], 0x10
jb 0x5d3bdb
mov eax, dword [eax]
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.004910e5
push 8
pop ebx
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 7
cmp dword [ebp + 0x28], ebx
jb 0x5d3bf7
mov ecx, dword [ebp + 0x14]
lea eax, [ebp + 0x4c]
cmp dword [ebp + 0x60], ebx
jb 0x5d3c02
mov eax, dword [ebp + 0x4c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x5d3c33
lea ecx, [ebp + 0x14]
cmp dword [ebp + 0x28], ebx
jb 0x5d3c19
mov ecx, dword [ebp + 0x14]
lea eax, [ebp + 0x4c]
cmp dword [ebp + 0x60], ebx
jb 0x5d3c24
mov eax, dword [ebp + 0x4c]
push ecx
push eax
push str.Failed_to_install_bundled_btapp:__s_to:__s
call fcn.0048e961
add esp, 0xc
lea ecx, [ebp + 0x14]
call fcn.0044823e
jmp 0x5d3c65
push 8
pop ebx
lea ecx, [ebp + 0x34]
cmp dword [ebp + 0x48], ebx
jb 0x5d3c4b
mov ecx, dword [ebp + 0x34]
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], ebx
jb 0x5d3c56
mov eax, dword [ebp - 0x24]
push ecx
push eax
push str.Bundled_btapp___s__is_ill_formed:__s
call fcn.0048e961
add esp, 0xc
mov eax, dword [ebp + 0x48]
mov byte [ebp - 4], 3
cmp eax, ebx
jb 0x5d3ccc
mov ecx, dword [ebp + 0x34]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x2c], eax
mov dword [ebp + 0x64], ecx
cmp eax, 0x1000
jb 0x5d3c9a
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x64]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x64]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
jmp 0x5d3ccc
cmp dword [ebp + 0x60], 8
lea ecx, [ebp + 0x4c]
jb 0x5d3cb1
mov ecx, dword [ebp + 0x4c]
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
jb 0x5d3cbd
mov eax, dword [ebp - 0x24]
push ecx
push eax
push str.Failed_to_unpack_bundled_btapp:__s_to:__s
call fcn.0048e961
add esp, 0xc
xor ebx, ebx
inc ebx
push ebx
push dword [ebp + 0x10]
call fcn.0046f19e
jmp 0x5d3d16
push 0x7480a4
lea ecx, [ebp - 0x24]
call fcn.00457121
test al, al
je 0x5d3d13
lea eax, [ebp + 0x6c]
push eax
push ebx
push edi
call fcn.004de1be
cmp dword [ebp + 0x6c], 0
mov ebx, eax
je 0x5d3d0b
test ebx, ebx
je 0x5d3d0b
push dword [ebp + 0x6c]
push ebx
call fcn.005d4207
push 1
push ebx
call fcn.0046f19e
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0044823e
mov edx, dword [ebp + 0x68]
inc edx
cmp edx, dword [edi + 0x38]
mov dword [ebp + 0x68], edx
jne 0x5d3ac6
push edi
call fcn.00497c2d
push 0xf
pop edi
test esi, esi
je 0x5d3d5e
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.0040fd80
lea eax, [ebp + 0x14]
jmp 0x5d3d7d
xor eax, eax
mov dword [ebp + 0x48], edi
push eax
push 0x77a89f
lea ecx, [ebp + 0x34]
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x44], eax
call fcn.00414b60
push 2
lea eax, [ebp + 0x34]
pop ebx
mov byte [ebp + 0x10], 0
mov ecx, 0x7e6580
push dword [ebp + 0x10]
push eax
call fcn.00416240
test bl, 2
je 0x5d3dd7
mov eax, dword [ebp + 0x48]
and ebx, 0xfffffffd
cmp eax, 0x10
jb 0x5d3dcc
mov ecx, dword [ebp + 0x34]
inc eax
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], ecx
cmp eax, 0x1000
jb 0x5d3dc3
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.0068976d
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 0x5d3e18
mov eax, dword [ebp + 0x28]
cmp eax, 0x10
jb 0x5d3e18
mov ecx, dword [ebp + 0x14]
inc eax
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], ecx
cmp eax, 0x1000
jb 0x5d3e0f
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
mov byte [ebp - 4], 9
test esi, esi
je 0x5d3e27
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp + 0x60]
cmp eax, 8
jb 0x5d3e62
mov ecx, dword [ebp + 0x4c]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], ecx
cmp eax, 0x1000
jb 0x5d3e59
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x68]
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.0068976d
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.0044823e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x70
leave
ret