Function at 0x5a192b
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x6afc91
call fcn.00640244
sub esp, 0x238
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x244]
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push ebx
push 0x7ac270
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push str.___Begin_bundle_install___
call fcn.005a14e1
push 0x1000000
lea eax, [ebp + 0x64]
mov dword [ebp + 0x64], ebx
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.00463066
mov esi, eax
test esi, esi
jne 0x5a199c
push str.INSTALLDEBUG:_LoadFile_of_current_exe_failed_n
call fcn.005a14e1
xor al, al
jmp 0x5a1c57
push 0x80
push 4
lea eax, [ebp - 0x244]
push eax
call fcn.00461598
mov edi, eax
cmp edi, 0xffffffff
jne 0x5a19ca
push str.V8_bundle:_Failed_to_open_exe_n
call fcn.005a14e1
push 1
push esi
call fcn.004600c9
jmp 0x5a1995
push ebx
push dword [0x78982c]
push edi
call fcn.00483687
mov ebx, eax
mov dword [ebp + 0x60], edx
push edi
mov dword [ebp + 0x68], ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp + 0x60]
mov ecx, ebx
or ecx, edi
jne 0x5a19f6
push str.V8_bundle:_Failed_to_get_bundle_offset_n
jmp 0x5a19bb
push str..zip
push 0
lea eax, [ebp]
push eax
call fcn.0046059a
and dword [ebp - 4], 0
cmp dword [ebp + 0x14], 8
mov eax, dword [ebp]
jae 0x5a1a16
lea eax, [ebp]
push dword [ebp + 0x64]
push esi
push eax
call fcn.004636dd
push 1
push esi
mov bl, al
call fcn.004600c9
test bl, bl
jne 0x5a1a35
push str.Failed_to_save_temporary_V8_bundle_n
jmp 0x5a1a57
push edi
push dword [ebp + 0x68]
lea eax, [ebp]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00427b8e
call fcn.00482adf
mov esi, eax
test esi, esi
jne 0x5a1a5e
push str.No_V8_bundle_found_n
call fcn.005a14e1
jmp 0x5a1a82
push str.Found_V8_bundle_n
call fcn.005a14e1
push esi
call fcn.00482b8f
test al, al
jne 0x5a1a89
push str.Failed_to_read_V8_bundle_directory_n
call fcn.005a14e1
push esi
call fcn.00482b54
xor bl, bl
jmp 0x5a1c49
push 0x6c1cd4
lea eax, [ebp - 0x3c]
push eax
call fcn.0047354f
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
jae 0x5a1aa7
lea eax, [ebp - 0x3c]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
cmp dword [esi + 0x34], 0
jne 0x5a1acd
push str.V8_Bundle_found__but_no_files_in_bundle__n
call fcn.005a14e1
push esi
call fcn.00482b54
xor bl, bl
jmp 0x5a1c3d
xor ebx, ebx
lea eax, [esi + 0x24]
push ebx
mov ecx, eax
call fcn.004f038d
mov edi, eax
cmp dword [edi + 0x14], 0x10
jb 0x5a1ae4
mov edi, dword [edi]
push edi
lea eax, [ebp + 0x48]
push eax
call fcn.0047dfcb
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
mov byte [ebp - 4], 2
jae 0x5a1afe
lea eax, [ebp + 0x48]
push str.ui.btapp
push eax
call fcn.0047e1d7
test al, al
jne 0x5a1b62
push 0
push 1
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 1
call fcn.004281f2
inc ebx
lea eax, [esi + 0x24]
cmp ebx, dword [esi + 0x34]
jne 0x5a1ad2
push esi
call fcn.00482b54
push str.ui.btapp
lea eax, [ebp - 0x24]
push str.Failed_to_find_bundled_btapp:__s
push eax
call fcn.004654e1
add esp, 0xc
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 6
jae 0x5a1b52
lea eax, [ebp - 0x24]
push eax
call fcn.005a14e1
xor bl, bl
lea ecx, [ebp - 0x24]
jmp 0x5a1c34
lea eax, [ebp + 0x68]
push eax
push edi
push esi
call fcn.005a1e28
mov edi, eax
lea eax, [ebp + 0x18]
push str.b.btapp
push eax
call fcn.00473603
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 3
jae 0x5a1b8d
lea eax, [ebp + 0x18]
push dword [ebp + 0x68]
push edi
push eax
call fcn.004636dd
mov bl, al
test bl, bl
je 0x5a1bce
cmp dword [ebp + 0x2c], 8
mov ecx, dword [ebp + 0x18]
jae 0x5a1ba9
lea ecx, [ebp + 0x18]
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jae 0x5a1bb5
lea eax, [ebp + 0x48]
push ecx
push eax
lea eax, [ebp + 0x30]
push str.Installing_bundle:__s_to__s
push eax
call fcn.004654e1
add esp, 0x10
mov byte [ebp - 4], 4
jmp 0x5a1bf5
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jae 0x5a1bda
lea eax, [ebp + 0x48]
push str.apps.btapp
push eax
lea eax, [ebp + 0x30]
push str.Failed_to_unpack_bundled_btapp:__s_to:__s
push eax
call fcn.004654e1
add esp, 0x10
mov byte [ebp - 4], 5
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
jae 0x5a1c01
lea eax, [ebp + 0x30]
push eax
call fcn.005a14e1
push 0
push 1
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 3
call fcn.004281f2
push 1
push edi
call fcn.004600c9
push esi
call fcn.00482b54
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.004281f2
lea ecx, [ebp + 0x48]
push 0
push 1
call fcn.004281f2
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004281f2
push 0
push 1
lea ecx, [ebp]
call fcn.004281f2
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x6c]
pop ebp
ret