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

Disassembly:
push 0x3fc
mov eax, 0x4f0faf
call fcn.004bd27f
mov ebx, ecx
mov dword [ebp - 0x2d0], ebx
xor esi, esi
cmp dword [ebx + 0x14], esi
je 0x433308
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.004bf4f0
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 0x432dcb
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.004045f0
and dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004045f0
push str.ksb_repair.cab
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 1
call fcn.00404750
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x290]
call fcn.004045f0
push str.ksb_repair
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 2
call fcn.00404750
push ecx
push ecx
lea ecx, [ebp - 0x370]
call fcn.00434297
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 0x432e8e
mov edi, dword [esi]
jmp 0x432e90
mov edi, esi
lea eax, [ebp - 0x370]
push eax
call fcn.00436fd9
pop ecx
mov edx, str.CrashRepair::StartRepair
mov ecx, eax
call fcn.0043700b
mov edx, str.__Download_Url_is:
mov ecx, eax
call fcn.00437258
mov edx, edi
mov ecx, eax
call fcn.00437258
mov edx, str.__Download_File_is:
mov ecx, eax
call fcn.00437258
mov edx, dword [ebp - 0x2d4]
mov ecx, eax
call fcn.00437258
push eax
call fcn.00436fd9
pop ecx
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x370]
call fcn.00434392
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], ebx
jb 0x432efb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 3
call fcn.00402120
cmp dword [esi + 0x14], ebx
jb 0x432f18
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x278]
call fcn.004045f0
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00433328
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 3
call fcn.00402120
cmp dword [ebp - 0x234], ebx
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x230]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.004045f0
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.00402120
test bl, bl
jne 0x4332aa
cmp dword [ebp - 0x294], 8
lea eax, [ebp - 0x2a8]
lea ecx, [ebp - 0x278]
cmovae eax, dword [ebp - 0x2a8]
push eax
call fcn.004045f0
mov ecx, dword [ebp - 0x2d0]
lea eax, [ebp - 0x278]
xor ebx, ebx
mov byte [ebp - 4], 7
push ebx
push 0x433a1c
push eax
call fcn.00433802
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 3
call fcn.00402120
lea ecx, [ebp - 0x290]
call fcn.00432aea
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.00433640
test eax, eax
je 0x433299
mov ecx, dword [ebp - 0x2cc]
mov eax, dword [ebp - 0x2c8]
cmp ecx, eax
je 0x433299
sub eax, ecx
push 0x18
cdq
pop edi
idiv edi
cmp eax, 1
ja 0x433299
cmp dword [ecx + 0x14], 0x10
jb 0x433063
mov ecx, dword [ecx]
push ecx
lea ecx, [ebp - 0x260]
call fcn.00401f90
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x278]
call fcn.00432cc7
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xb
call fcn.004020a0
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x2c0]
call fcn.004045c0
mov edi, 0x50c8fc
mov byte [ebp - 4], 0xc
push edi
lea ecx, [ebp - 0x2c0]
call fcn.00404750
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x2c0]
call fcn.00405480
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x230]
call fcn.004045c0
push edi
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xd
call fcn.00404750
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x230]
call fcn.00405480
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x2c0]
call fcn.00432bb6
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call esi
cmp eax, 0xffffffff
je 0x433223
call fcn.00433c13
lea eax, [ebp - 0x230]
push eax
call fcn.00433a42
mov edi, eax
call fcn.00433dc4
push ecx
push ecx
lea ecx, [ebp - 0x408]
call fcn.00434297
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.00436fd9
pop ecx
push edi
push ecx
mov edx, str.CrashRepair::StartRepair
mov ecx, eax
call fcn.0043700b
mov edx, str.__Register_File_is:
mov ecx, eax
call fcn.00437258
mov edx, esi
mov ecx, eax
call fcn.00437258
mov edx, str.__Register_result:
mov ecx, eax
call fcn.00437258
pop ecx
mov ecx, eax
call fcn.004343ca
push eax
call fcn.00436fd9
pop ecx
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x408]
call fcn.00434392
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], 8
jb 0x4331dd
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0xe
call fcn.00402120
lea ecx, [ebp - 0x3b8]
mov byte [ebp - 4], 0xd
call fcn.0043434f
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.004bba15
pop ecx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0xc
call fcn.00402120
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0xb
call fcn.00402120
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 8
call fcn.00402120
lea ecx, [ebp - 0x290]
call fcn.00432aea
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x260]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.004045f0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0x10
call fcn.00432aea
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 8
call fcn.00402120
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 3
call fcn.004169e0
jmp 0x4332ac
xor ebx, ebx
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 2
call fcn.0043434f
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.004bba15
pop ecx
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], 1
call fcn.00402120
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], bl
call fcn.00402120
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.00402120
call fcn.004bd22e
ret