Function at 0x59d27e
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x68
mov eax, 0x6a68e4
call fcn.006375a8
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 0x79ef80
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push str.___Begin_bundle_install___
call fcn.0059ce34
push 0x1000000
lea eax, [ebp + 0x64]
mov dword [ebp + 0x64], ebx
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.0046146c
mov esi, eax
test esi, esi
jne 0x59d2ef
push str.INSTALLDEBUG:_LoadFile_of_current_exe_failed_n
call fcn.0059ce34
xor al, al
jmp 0x59d5aa
push 0x80
push 4
lea eax, [ebp - 0x244]
push eax
call fcn.0045fa00
mov edi, eax
cmp edi, 0xffffffff
jne 0x59d31d
push str.V8_bundle:_Failed_to_open_exe_n
call fcn.0059ce34
push 1
push esi
call fcn.0045e47c
jmp 0x59d2e8
push ebx
push dword [0x77d61c]
push edi
call fcn.00480691
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 0x59d349
push str.V8_bundle:_Failed_to_get_bundle_offset_n
jmp 0x59d30e
push str..zip
push 0
lea eax, [ebp]
push eax
call fcn.0045ea02
and dword [ebp - 4], 0
cmp dword [ebp + 0x14], 8
mov eax, dword [ebp]
jae 0x59d369
lea eax, [ebp]
push dword [ebp + 0x64]
push esi
push eax
call fcn.00461ae3
push 1
push esi
mov bl, al
call fcn.0045e47c
test bl, bl
jne 0x59d388
push str.Failed_to_save_temporary_V8_bundle_n
jmp 0x59d3aa
push edi
push dword [ebp + 0x68]
lea eax, [ebp]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0042615e
call fcn.0047fae9
mov esi, eax
test esi, esi
jne 0x59d3b1
push str.No_V8_bundle_found_n
call fcn.0059ce34
jmp 0x59d3d5
push str.Found_V8_bundle_n
call fcn.0059ce34
push esi
call fcn.0047fb99
test al, al
jne 0x59d3dc
push str.Failed_to_read_V8_bundle_directory_n
call fcn.0059ce34
push esi
call fcn.0047fb5e
xor bl, bl
jmp 0x59d59c
push 0x6b7a2c
lea eax, [ebp - 0x3c]
push eax
call fcn.00470ce5
cmp dword [ebp - 0x28], 8
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 1
jae 0x59d3fa
lea eax, [ebp - 0x3c]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
cmp dword [esi + 0x34], 0
jne 0x59d420
push str.V8_Bundle_found__but_no_files_in_bundle__n
call fcn.0059ce34
push esi
call fcn.0047fb5e
xor bl, bl
jmp 0x59d590
xor ebx, ebx
lea eax, [esi + 0x24]
push ebx
mov ecx, eax
call fcn.005302e7
mov edi, eax
cmp dword [edi + 0x14], 0x10
jb 0x59d437
mov edi, dword [edi]
push edi
lea eax, [ebp + 0x48]
push eax
call fcn.0047af87
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
mov byte [ebp - 4], 2
jae 0x59d451
lea eax, [ebp + 0x48]
push str.ui.btapp
push eax
call fcn.0047b193
test al, al
jne 0x59d4b5
push 0
push 1
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 1
call fcn.004267c2
inc ebx
lea eax, [esi + 0x24]
cmp ebx, dword [esi + 0x34]
jne 0x59d425
push esi
call fcn.0047fb5e
push str.ui.btapp
lea eax, [ebp - 0x24]
push str.Failed_to_find_bundled_btapp:__s
push eax
call fcn.004638e7
add esp, 0xc
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], 6
jae 0x59d4a5
lea eax, [ebp - 0x24]
push eax
call fcn.0059ce34
xor bl, bl
lea ecx, [ebp - 0x24]
jmp 0x59d587
lea eax, [ebp + 0x68]
push eax
push edi
push esi
call fcn.00581f5e
mov edi, eax
lea eax, [ebp + 0x18]
push str.b.btapp
push eax
call fcn.00470d99
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 3
jae 0x59d4e0
lea eax, [ebp + 0x18]
push dword [ebp + 0x68]
push edi
push eax
call fcn.00461ae3
mov bl, al
test bl, bl
je 0x59d521
cmp dword [ebp + 0x2c], 8
mov ecx, dword [ebp + 0x18]
jae 0x59d4fc
lea ecx, [ebp + 0x18]
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jae 0x59d508
lea eax, [ebp + 0x48]
push ecx
push eax
lea eax, [ebp + 0x30]
push str.Installing_bundle:__s_to__s
push eax
call fcn.004638e7
add esp, 0x10
mov byte [ebp - 4], 4
jmp 0x59d548
cmp dword [ebp + 0x5c], 8
mov eax, dword [ebp + 0x48]
jae 0x59d52d
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.004638e7
add esp, 0x10
mov byte [ebp - 4], 5
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
jae 0x59d554
lea eax, [ebp + 0x30]
push eax
call fcn.0059ce34
push 0
push 1
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 3
call fcn.004267c2
push 1
push edi
call fcn.0045e47c
push esi
call fcn.0047fb5e
push 0
push 1
lea ecx, [ebp + 0x18]
call fcn.004267c2
lea ecx, [ebp + 0x48]
push 0
push 1
call fcn.004267c2
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.004267c2
push 0
push 1
lea ecx, [ebp]
call fcn.004267c2
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