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

Disassembly:
push 0x3fc
mov eax, 0x52846b
call fcn.004f2332
mov ebx, ecx
mov dword [ebp - 0x2d0], ebx
xor esi, esi
cmp dword [ebx + 0x14], esi
je 0x449b0f
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.004f2e30
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 0x4495d2
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.00417260
and dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00417260
push str.ksb_repair.cab
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.004173e0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x290]
call fcn.00417260
push str.ksb_repair
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 2
call fcn.004173e0
push ecx
push ecx
lea ecx, [ebp - 0x370]
call fcn.0044aa63
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 0x449695
mov edi, dword [esi]
jmp 0x449697
mov edi, esi
lea eax, [ebp - 0x370]
push eax
call fcn.0044d7a5
pop ecx
mov edx, str.CrashRepair::StartRepair
mov ecx, eax
call fcn.0044d7d7
mov edx, str.__Download_Url_is:
mov ecx, eax
call fcn.0044da24
mov edx, edi
mov ecx, eax
call fcn.0044da24
mov edx, str.__Download_File_is:
mov ecx, eax
call fcn.0044da24
mov edx, dword [ebp - 0x2d4]
mov ecx, eax
call fcn.0044da24
push eax
call fcn.0044d7a5
pop ecx
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x370]
call fcn.0044ab5e
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], ebx
jb 0x449702
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 3
call fcn.00417360
cmp dword [esi + 0x14], ebx
jb 0x44971f
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x278]
call fcn.00417260
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00449b2f
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 3
call fcn.00417360
cmp dword [ebp - 0x234], ebx
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x230]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.00417260
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.00417360
test bl, bl
jne 0x449ab1
cmp dword [ebp - 0x294], 8
lea eax, [ebp - 0x2a8]
lea ecx, [ebp - 0x278]
cmovae eax, dword [ebp - 0x2a8]
push eax
call fcn.00417260
mov ecx, dword [ebp - 0x2d0]
lea eax, [ebp - 0x278]
xor ebx, ebx
mov byte [ebp - 4], 7
push ebx
push 0x44a1e8
push eax
call fcn.00449fce
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 3
call fcn.00417360
lea ecx, [ebp - 0x290]
call fcn.004492f1
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.00449e0c
test eax, eax
je 0x449aa0
mov ecx, dword [ebp - 0x2cc]
mov eax, dword [ebp - 0x2c8]
cmp ecx, eax
je 0x449aa0
sub eax, ecx
push 0x18
cdq
pop edi
idiv edi
cmp eax, 1
ja 0x449aa0
cmp dword [ecx + 0x14], 0x10
jb 0x44986a
mov ecx, dword [ecx]
push ecx
lea ecx, [ebp - 0x260]
call fcn.004170e0
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x278]
call fcn.004494ce
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xb
call fcn.004171b0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x2c0]
call fcn.00417230
mov edi, 0x55af84
mov byte [ebp - 4], 0xc
push edi
lea ecx, [ebp - 0x2c0]
call fcn.004173e0
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x2c0]
call fcn.004180c0
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x230]
call fcn.00417230
push edi
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xd
call fcn.004173e0
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x230]
call fcn.004180c0
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x2c0]
call fcn.004493bd
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call esi
cmp eax, 0xffffffff
je 0x449a2a
call fcn.0044a3df
lea eax, [ebp - 0x230]
push eax
call fcn.0044a20e
mov edi, eax
call fcn.0044a590
push ecx
push ecx
lea ecx, [ebp - 0x408]
call fcn.0044aa63
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.0044d7a5
pop ecx
push edi
push ecx
mov edx, str.CrashRepair::StartRepair
mov ecx, eax
call fcn.0044d7d7
mov edx, str.__Register_File_is:
mov ecx, eax
call fcn.0044da24
mov edx, esi
mov ecx, eax
call fcn.0044da24
mov edx, str.__Register_result:
mov ecx, eax
call fcn.0044da24
pop ecx
mov ecx, eax
call fcn.0044ab96
push eax
call fcn.0044d7a5
pop ecx
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x408]
call fcn.0044ab5e
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], 8
jb 0x4499e4
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xe
call fcn.00417360
lea ecx, [ebp - 0x3b8]
mov byte [ebp - 4], 0xd
call fcn.0044ab1b
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.004f1113
pop ecx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xc
call fcn.00417360
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0xb
call fcn.00417360
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 8
call fcn.00417360
lea ecx, [ebp - 0x290]
call fcn.004492f1
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x260]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.00417260
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x10
call fcn.004492f1
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 8
call fcn.00417360
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 3
call fcn.00428ec0
jmp 0x449ab3
xor ebx, ebx
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 2
call fcn.0044ab1b
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.004f1113
pop ecx
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 1
call fcn.00417360
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], bl
call fcn.00417360
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.00417360
call fcn.004f22e1
ret