Function at 0x4336ab
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Print debug messages

Disassembly:
push 0x3fc
mov eax, 0x4f1652
call fcn.004bcfcf
mov ebx, ecx
mov dword [ebp - 0x2d0], ebx
xor esi, esi
cmp dword [ebx + 0x14], esi
je 0x433c43
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.004bf240
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x218]
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x433706
push 5
pop ecx
mov esi, str._flash_ksb
lea eax, [ebp - 0x218]
rep movsd dword es:[edi], dword [esi]
push 0
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.00406c40
and dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00406c40
push str.ksb_repair.cab
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.00406da0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x290]
call fcn.00406c40
push str.ksb_repair
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 2
call fcn.00406da0
push ecx
push ecx
lea ecx, [ebp - 0x370]
call fcn.00434bd2
mov byte [ebp - 4], 3
lea esi, [ebx + 4]
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push 8
cmovae eax, dword [ebp - 0x248]
pop ebx
mov dword [ebp - 0x2d4], eax
cmp dword [esi + 0x14], ebx
jb 0x4337c9
mov edi, dword [esi]
jmp 0x4337cb
mov edi, esi
lea eax, [ebp - 0x370]
push eax
call fcn.00437912
pop ecx
mov edx, str.CrashRepair::StartRepair
mov ecx, eax
call fcn.00437944
mov edx, str.__Download_Url_is:
mov ecx, eax
call fcn.00437b91
mov edx, edi
mov ecx, eax
call fcn.00437b91
mov edx, str.__Download_File_is:
mov ecx, eax
call fcn.00437b91
mov edx, dword [ebp - 0x2d4]
mov ecx, eax
call fcn.00437b91
push eax
call fcn.00437912
pop ecx
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x370]
call fcn.00434ccd
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], ebx
jb 0x433836
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 3
call fcn.00402a40
cmp dword [esi + 0x14], ebx
jb 0x433853
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x278]
call fcn.00406c40
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00433c63
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 3
call fcn.00402a40
cmp dword [ebp - 0x234], ebx
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x230]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.00406c40
mov byte [ebp - 4], 6
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [ebp - 0x230]
push eax
call esi
cmp eax, 0xffffffff
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
sete bl
call fcn.00402a40
test bl, bl
jne 0x433be5
cmp dword [ebp - 0x294], 8
lea eax, [ebp - 0x2a8]
lea ecx, [ebp - 0x278]
cmovae eax, dword [ebp - 0x2a8]
push eax
call fcn.00406c40
mov ecx, dword [ebp - 0x2d0]
lea eax, [ebp - 0x278]
xor ebx, ebx
mov byte [ebp - 4], 7
push ebx
push 0x434357
push eax
call fcn.0043413d
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 3
call fcn.00402a40
lea ecx, [ebp - 0x290]
call fcn.00433425
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2c8], ebx
mov dword [ebp - 0x2c4], ebx
lea eax, [ebp - 0x2cc]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.00433f7b
test eax, eax
je 0x433bd4
mov ecx, dword [ebp - 0x2cc]
mov eax, dword [ebp - 0x2c8]
cmp ecx, eax
je 0x433bd4
sub eax, ecx
push 0x18
cdq
pop edi
idiv edi
cmp eax, 1
ja 0x433bd4
cmp dword [ecx + 0x14], 0x10
jb 0x43399e
mov ecx, dword [ecx]
push ecx
lea ecx, [ebp - 0x260]
call fcn.00402570
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x278]
call fcn.00433602
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xb
call fcn.00402680
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x2c0]
call fcn.00406c10
mov edi, 0x50f8e4
mov byte [ebp - 4], 0xc
push edi
lea ecx, [ebp - 0x2c0]
call fcn.00406da0
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x2c0]
call fcn.00407180
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x230]
call fcn.00406c10
push edi
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xd
call fcn.00406da0
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x230]
call fcn.00407180
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x2c0]
call fcn.004334f1
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call esi
cmp eax, 0xffffffff
je 0x433b5e
call fcn.0043454e
lea eax, [ebp - 0x230]
push eax
call fcn.0043437d
mov edi, eax
call fcn.004346ff
push ecx
push ecx
lea ecx, [ebp - 0x408]
call fcn.00434bd2
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x408]
cmp dword [ebp - 0x21c], 8
lea esi, [ebp - 0x230]
push eax
cmovae esi, dword [ebp - 0x230]
call fcn.00437912
pop ecx
push edi
push ecx
mov edx, str.CrashRepair::StartRepair
mov ecx, eax
call fcn.00437944
mov edx, str.__Register_File_is:
mov ecx, eax
call fcn.00437b91
mov edx, esi
mov ecx, eax
call fcn.00437b91
mov edx, str.__Register_result:
mov ecx, eax
call fcn.00437b91
pop ecx
mov ecx, eax
call fcn.00434d05
push eax
call fcn.00437912
pop ecx
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x408]
call fcn.00434ccd
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], 8
jb 0x433b18
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xe
call fcn.00402a40
lea ecx, [ebp - 0x3b8]
mov byte [ebp - 4], 0xd
call fcn.00434c8a
lea eax, [ebp - 0x3b8]
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004bb773
pop ecx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xc
call fcn.00402a40
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0xb
call fcn.00402a40
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 8
call fcn.00402a40
lea ecx, [ebp - 0x290]
call fcn.00433425
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x260]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.00406c40
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x10
call fcn.00433425
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 8
call fcn.00402a40
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 3
call fcn.00416810
jmp 0x433be7
xor ebx, ebx
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 2
call fcn.00434c8a
lea eax, [ebp - 0x320]
mov dword [ebp - method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.004bb773
pop ecx
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 1
call fcn.00402a40
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], bl
call fcn.00402a40
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.00402a40
call fcn.004bcf7e
ret