Function at 0x4dd3c8
Capabilities:
Check if file exists

Disassembly:
push 0x84
mov eax, 0x535d4d
call fcn.004f2332
mov ebx, ecx
mov dword [ebp - 0x84], ebx
push str.Selfportect_start_r_n
push 0x5aea00
call fcn.004de360
pop ecx
pop ecx
call fcn.00437474
push eax
lea ecx, [ebp - 0x78]
call fcn.0043a4ef
and dword [ebp - 4], 0
lea eax, [ebx + 0x20]
push eax
lea ecx, [ebp - 0x78]
call fcn.0043c2e8
lea eax, [ebp - 0x78]
push eax
call fcn.004cfddf
mov esi, str.Local_State
push esi
call fcn.0043a8c3
pop ecx
pop ecx
push eax
push esi
lea ecx, [ebp - 0x78]
call fcn.004516f5
push dword [ebp - 0x78]
lea ecx, [ebp - 0x28]
call fcn.00417260
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4dd535
and dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
push 0x10
mov byte [ebp - 4], 2
call fcn.004b2155
pop ecx
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4dd48a
mov ecx, eax
call fcn.0041f010
mov ebx, eax
jmp 0x4dd48c
xor ebx, ebx
mov dword [ebp - 0x74], ebx
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
push ebx
call fcn.00427f60
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, esp
cmovae eax, dword [ebp - 0x28]
mov dword [esi], eax
test eax, eax
je 0x4dd4b7
push eax
call fcn.00416680
pop ecx
lea ecx, [ebp - 0x70]
mov dword [esi + 4], eax
call fcn.004195a0
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
push ecx
push eax
mov byte [ebp - 4], 5
call fcn.0041bf40
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00419620
cmp esi, 0xffffffff
jne 0x4dd519
call edi
push eax
sub esp, 0x18
lea esi, [ebp - 0x28]
push 6
pop ecx
mov edi, esp
push str.WriteFile__ws_errcode_d_r_n
rep movsd dword es:[edi], dword [esi]
push 0x5aea00
call fcn.004de360
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x24
mov byte [ebp - 4], 2
test ebx, ebx
je 0x4dd529
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.004178d0
and dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
mov byte [ebp - 4], 6
push ecx
mov esi, esp
mov dword [esi], eax
test eax, eax
je 0x4dd564
push eax
call fcn.00416680
pop ecx
lea ecx, [ebp - 0x70]
mov dword [esi + 4], eax
call fcn.004195a0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 7
push ecx
push eax
call fcn.00421780
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 6
mov bl, al
call fcn.00419620
test bl, bl
je 0x4dd744
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.00421610
pop ecx
pop ecx
mov ecx, dword [ebp - 0x7c]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x4dd734
xor ebx, ebx
lea edx, [ebp - 0x80]
mov dword [ebp - 0x80], ebx
mov eax, dword [ecx]
push edx
call dword [eax + 0x2c]
lea eax, [ebp - 0x90]
push eax
push ecx
push ecx
mov esi, esp
mov eax, str.safe.selfprotect
push eax
mov dword [esi], eax
call fcn.004166b0
pop ecx
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0x80]
call fcn.0041f880
test al, al
jne 0x4dd710
xor eax, eax
cmp byte [ebp + 8], al
setne al
push eax
push str.dict_formentry__Get_no_exists_bool___d_r_n
push 0x5aea00
call fcn.004de360
add esp, 0xc
lea ecx, [ebp - 0x70]
push str.safe.selfprotect
call fcn.004170e0
push dword [ebp + 8]
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 9
call fcn.0041f3f0
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.004178d0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xa
push eax
push dword [ebp - 0x7c]
call fcn.00427f60
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, esp
cmovae eax, dword [ebp - 0x28]
mov dword [esi], eax
test eax, eax
jne 0x4dd684
mov eax, ebx
jmp 0x4dd68b
push eax
call fcn.00416680
pop ecx
lea ecx, [ebp - 0x70]
mov dword [esi + 4], eax
call fcn.004195a0
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae ecx, dword [ebp - 0x40]
push ecx
push eax
mov byte [ebp - 4], 0xb
call fcn.0041bf40
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.00419620
cmp esi, 0xffffffff
jne 0x4dd6e7
call edi
push eax
sub esp, 0x18
lea esi, [ebp - 0x28]
push 6
pop ecx
mov edi, esp
push str.WriteFile__ws_errcode_d_r_n
rep movsd dword es:[edi], dword [esi]
push 0x5aea00
call fcn.004de360
add esp, 0x24
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x74]
push eax
add ecx, 0xe4
mov dword [ebp - 0x74], 1
call fcn.00433210
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004178d0
jmp 0x4dd731
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
call edi
push eax
push esi
push str.ReadFileToString__ws_errcode_r_n
push 0x5aea00
call fcn.004de360
add esp, 0x10
mov ecx, dword [ebp - 0x7c]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x4dd766
mov eax, dword [ecx]
push 1
call dword [eax]
jmp 0x4dd766
call edi
push eax
sub esp, 0x18
lea esi, [ebp - 0x28]
push 6
pop ecx
mov edi, esp
push str.WriteFile__ws_errcode_d_r_n
rep movsd dword es:[edi], dword [esi]
push 0x5aea00
call fcn.004de360
add esp, 0x24
push str.Selfportect_end_r_n
push 0x5aea00
call fcn.004de360
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.004178d0
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00417d20
mov ecx, dword [ebp - 0x78]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
call fcn.004f22e1
ret 4