Function at 0x58f9f1
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x680177
call fcn.0062921c
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 0x76c5e8
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push str.___Begin_bundle_install___
call fcn.0058f5a7
push 0x1000000
lea eax, [ebp + 0x64]
mov dword [ebp + 0x64], ebx
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0045e379
mov esi, eax
test esi, esi
jne 0x58fa62
push str.INSTALLDEBUG:_LoadFile_of_current_exe_failed_n
call fcn.0058f5a7
xor al, al
jmp 0x58fd1d
push 0x80
push 4
lea eax, [ebp - 0x244]
push eax
call fcn.0045c90d
mov edi, eax
cmp edi, 0xffffffff
jne 0x58fa90
push str.V8_bundle:_Failed_to_open_exe_n
call fcn.0058f5a7
push 1
push esi
call fcn.0045b404
jmp 0x58fa5b
push ebx
push dword [0x74cdcc]
push edi
call fcn.0047d8d0
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 0x58fabc
push str.V8_bundle:_Failed_to_get_bundle_offset_n
jmp 0x58fa81
push str..zip
push 0
lea eax, [ebp]
push eax
call fcn.0045b92c
and dword [ebp - 4], 0
cmp dword [ebp + 0x14], 8
mov eax, dword [ebp]
jae 0x58fadc
lea eax, [ebp]
push dword [ebp + 0x64]
push esi
push eax
call fcn.0045e9f0
push 1
push esi
mov bl, al
call fcn.0045b404
test bl, bl
jne 0x58fafb
push str.Failed_to_save_temporary_V8_bundle_n
jmp 0x58fb1d
push edi
push dword [ebp + 0x68]
lea eax, [ebp]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00423207
call fcn.0047ccd0
mov esi, eax
test esi, esi
jne 0x58fb24
push str.No_V8_bundle_found_n
call fcn.0058f5a7
jmp 0x58fb48
push str.Found_V8_bundle_n
call fcn.0058f5a7
push esi
call fcn.0047cd80
test al, al
jne 0x58fb4f
push str.Failed_to_read_V8_bundle_directory_n
call fcn.0058f5a7
push esi
call fcn.0047cd45
xor bl, bl
jmp 0x58fd0f
push 0x68f734
lea eax, [ebp - 0x3c]
push eax
call fcn.0046dfa2
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
jae 0x58fb6d
lea eax, [ebp - 0x3c]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
cmp dword [esi + 0x34], 0
jne 0x58fb93
push str.V8_Bundle_found__but_no_files_in_bundle__n
call fcn.0058f5a7
push esi
call fcn.0047cd45
xor bl, bl
jmp 0x58fd03
xor ebx, ebx
lea eax, [esi + 0x24]
push ebx
mov ecx, eax
call fcn.004f2484
mov edi, eax
cmp dword [edi + 0x14], 0x10
jb 0x58fbaa
mov edi, dword [edi]
push edi
lea eax, [ebp + 0x48]
push eax
call fcn.004785a1
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
mov byte [ebp - 4], 2
jae 0x58fbc4
lea eax, [ebp + 0x48]
push str.ui.btapp
push eax
call fcn.004787ad
test al, al
jne 0x58fc28
push 0
push 1
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 1
call fcn.0042386b
inc ebx
lea eax, [esi + 0x24]
cmp ebx, dword [esi + 0x34]
jne 0x58fb98
push esi
call fcn.0047cd45
push str.ui.btapp
lea eax, [ebp - 0x24]
push str.Failed_to_find_bundled_btapp:__s
push eax
call fcn.004607f4
add esp, 0xc
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 6
jae 0x58fc18
lea eax, [ebp - 0x24]
push eax
call fcn.0058f5a7
xor bl, bl
lea ecx, [ebp - 0x24]
jmp 0x58fcfa
lea eax, [ebp + 0x68]
push eax
push edi
push esi
call fcn.0057505f
mov edi, eax
lea eax, [ebp + 0x18]
push str.b.btapp
push eax
call fcn.0046e056
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 3
jae 0x58fc53
lea eax, [ebp + 0x18]
push dword [ebp + 0x68]
push edi
push eax
call fcn.0045e9f0
mov bl, al
test bl, bl
je 0x58fc94
cmp dword [ebp + 0x2c], 8
mov ecx, dword [ebp + 0x18]
jae 0x58fc6f
lea ecx, [ebp + 0x18]
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jae 0x58fc7b
lea eax, [ebp + 0x48]
push ecx
push eax
lea eax, [ebp + 0x30]
push str.Installing_bundle:__s_to__s
push eax
call fcn.004607f4
add esp, 0x10
mov byte [ebp - 4], 4
jmp 0x58fcbb
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jae 0x58fca0
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.004607f4
add esp, 0x10
mov byte [ebp - 4], 5
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
jae 0x58fcc7
lea eax, [ebp + 0x30]
push eax
call fcn.0058f5a7
push 0
push 1
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 3
call fcn.0042386b
push 1
push edi
call fcn.0045b404
push esi
call fcn.0047cd45
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.0042386b
lea ecx, [ebp + 0x48]
push 0
push 1
call fcn.0042386b
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.0042386b
push 0
push 1
lea ecx, [ebp]
call fcn.0042386b
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