Function at 0x5b2261
Capabilities:
Create directory

Disassembly:
push ebp
sub esp, 0x6c
mov eax, 0x6bd45f
call fcn.00664608
sub esp, 0x238
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x244]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push esi
push 0x7b5c10
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push str.___Begin_bundle_install___
mov ebx, 0x6ce074
push ebx
call fcn.004704f0
pop ecx
pop ecx
push 0x1000000
lea eax, [ebp + 0x68]
mov dword [ebp + 0x68], esi
push eax
lea eax, [ebp - 0x244]
push eax
call fcn.00455163
mov edi, eax
test edi, edi
jne 0x5b22dd
push str.INSTALLDEBUG:_LoadFile_of_current_exe_failed_n
push ebx
call fcn.004704f0
pop ecx
pop ecx
xor al, al
jmp 0x5b25c9
push 0x80
push 4
lea eax, [ebp - 0x244]
push eax
call fcn.00452e49
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5b2312
push str.V8_bundle:_Failed_to_open_exe_n
push 0x6ce074
call fcn.004704f0
pop ecx
pop ecx
push 1
push edi
call fcn.004513a7
jmp 0x5b22d6
push esi
push dword [0x791bac]
push ebx
call fcn.0047a39a
push ebx
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x64], edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x6c]
or eax, dword [ebp + 0x64]
jne 0x5b233b
push str.V8_bundle:_Failed_to_get_bundle_offset_n
jmp 0x5b22fc
push str..zip
push esi
lea eax, [ebp]
push eax
call fcn.004518bd
push 8
pop ecx
lea eax, [ebp]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x14], ecx
jb 0x5b235b
mov eax, dword [ebp]
push dword [ebp + 0x68]
push edi
push eax
call fcn.00455877
push 1
push edi
mov bl, al
call fcn.004513a7
test bl, bl
jne 0x5b238b
push str.Failed_to_save_temporary_V8_bundle_n
push 0x6ce074
call fcn.004704f0
pop ecx
pop ecx
xor ebx, ebx
jmp 0x5b25bf
push dword [ebp + 0x64]
xor ebx, ebx
lea eax, [ebp]
push dword [ebp + 0x6c]
sub esp, 0x18
mov ecx, esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00427a37
call fcn.004796a9
mov esi, eax
test esi, esi
jne 0x5b23ca
push str.No_V8_bundle_found_n
push 0x6ce074
call fcn.004704f0
pop ecx
pop ecx
jmp 0x5b25bf
push str.Found_V8_bundle_n
mov edi, 0x6ce074
push edi
call fcn.004704f0
pop ecx
pop ecx
push esi
call fcn.00479757
test al, al
jne 0x5b23fe
push str.Failed_to_read_V8_bundle_directory_n
push edi
call fcn.004704f0
pop ecx
pop ecx
push esi
call fcn.00479726
jmp 0x5b25bf
push 0x6ced1c
lea eax, [ebp - 0x3c]
push eax
call fcn.0046665e
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0x11
jb 0x5b241c
mov eax, dword [ebp - 0x3c]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
cmp dword [esi + 0x38], ebx
jne 0x5b2441
push str.V8_Bundle_found__but_no_files_in_bundle__n
push edi
call fcn.004704f0
pop ecx
pop ecx
push esi
call fcn.00479726
jmp 0x5b25b7
mov edx, ebx
mov dword [ebp + 0x6c], ebx
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
add eax, edx
dec ecx
and ecx, eax
mov eax, dword [esi + 0x2c]
mov edi, dword [eax + ecx*4]
cmp dword [edi + 0x14], 0x10
jb 0x5b245f
mov edi, dword [edi]
push edi
lea eax, [ebp + 0x48]
push eax
call fcn.00471937
cmp dword [ebp + 0x5c], 8
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 0x14
jb 0x5b2479
mov eax, dword [ebp + 0x48]
push 0x71f348
push eax
call fcn.00471b86
test al, al
jne 0x5b24e1
lea ecx, [ebp + 0x48]
mov byte [ebp - 4], 0x11
call fcn.00427afc
mov edx, dword [ebp + 0x6c]
inc edx
mov dword [ebp + 0x6c], edx
cmp edx, dword [esi + 0x38]
jne 0x5b2446
push esi
call fcn.00479726
push 0x71f348
lea eax, [ebp - 0x24]
push str.Failed_to_find_bundled
push eax
call fcn.004577f2
add esp, 0xc
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x1c
jb 0x5b24cc
mov eax, dword [ebp - 0x24]
push eax
push 0x6ce074
call fcn.004704f0
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
jmp 0x5b25b2
lea eax, [ebp + 0x6c]
push eax
push edi
push esi
call fcn.004bea1c
mov edi, eax
lea eax, [ebp + 0x18]
push str.b.btapp
push eax
call fcn.00466765
cmp dword [ebp + 0x2c], 8
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 0x15
jb 0x5b250c
mov ecx, dword [ebp + 0x18]
push dword [ebp + 0x6c]
push edi
push ecx
call fcn.00455877
mov bl, al
test bl, bl
je 0x5b254d
cmp dword [ebp + 0x2c], 8
lea ecx, [ebp + 0x18]
jb 0x5b2528
mov ecx, dword [ebp + 0x18]
cmp dword [ebp + 0x5c], 8
lea eax, [ebp + 0x48]
jb 0x5b2534
mov eax, dword [ebp + 0x48]
push ecx
push eax
lea eax, [ebp + 0x30]
push str.Installing_bundle:__s_to__s
push eax
call fcn.004577f2
add esp, 0x10
mov byte [ebp - 4], 0x16
jmp 0x5b2574
cmp dword [ebp + 0x5c], 8
lea eax, [ebp + 0x48]
jb 0x5b2559
mov eax, dword [ebp + 0x48]
push str.apps.btapp
push eax
lea eax, [ebp + 0x30]
push str.Failed_to_unpack_bundled
push eax
call fcn.004577f2
add esp, 0x10
mov byte [ebp - 4], 0x19
cmp dword [ebp + 0x44], 8
lea eax, [ebp + 0x30]
jb 0x5b2580
mov eax, dword [ebp + 0x30]
push eax
push 0x6ce074
call fcn.004704f0
pop ecx
pop ecx
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 0x15
call fcn.00427afc
push 1
push edi
call fcn.004513a7
push esi
call fcn.00479726
lea ecx, [ebp + 0x18]
call fcn.00427afc
lea ecx, [ebp + 0x48]
call fcn.00427afc
lea ecx, [ebp - 0x3c]
call fcn.00427afc
lea ecx, [ebp]
call fcn.00427afc
mov al, bl
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add ebp, 0x70
leave
ret