Function at 0x4216c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8436
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x5381f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x4c], 0
call fcn.00413540
mov ecx, eax
call fcn.00413670
mov dword [ebp - 0x34], eax
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0x74]
call eax
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x54]
call fcn.00417670
push eax
lea ecx, [ebp - 0x30]
call fcn.00403720
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00409d80
lea edx, [ebp - 0x90]
push edx
call fcn.004341b0
add esp, 4
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x5c]
call fcn.00406890
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 0x29], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x90]
call fcn.00409eb0
movzx ecx, byte [ebp - 0x29]
test ecx, ecx
je 0x42181c
lea edx, [ebp - 0x98]
push edx
call fcn.004341b0
add esp, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x64]
call fcn.004068b0
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x30]
push ecx
push str.GetAppdataConfigPath:
lea ecx, [ebp - 0x140]
call fcn.004091f0
mov dword [ebp - 0x68], eax
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x6c]
call fcn.00424040
mov ecx, eax
call fcn.00406500
push eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x140]
call fcn.00409f20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x98]
call fcn.00409eb0
cmp dword [ebp + 0xc], 0
je 0x42193d
lea ecx, [ebp - 0x30]
call fcn.00403a90
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42193d
lea ecx, [ebp - 0xa0]
push ecx
call fcn.004341b0
add esp, 4
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x74], edx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x74]
call fcn.00406890
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x40]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 0x2a], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
call fcn.00409eb0
movzx ecx, byte [ebp - 0x2a]
test ecx, ecx
je 0x421909
lea edx, [ebp - 0xa8]
push edx
call fcn.004341b0
add esp, 4
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x7c]
call fcn.004068b0
mov dword [ebp - 0x44], eax
push str.Create_Appdata_Config_file
lea ecx, [ebp - 0x1d8]
call fcn.004091f0
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x84]
call fcn.004240c0
push eax
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x44]
mov edx, dword [eax + 8]
call edx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1d8]
call fcn.00409f20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa8]
call fcn.00409eb0
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x30]
call fcn.00403a90
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xffffffff
je 0x42193d
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403700
mov edx, dword [ebp - 0x4c]
or edx, 1
mov dword [ebp - 0x4c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403900
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046621a
mov esp, ebp
pop ebp
ret 8