Function at 0x435570
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9bf4
mov eax, dword fs:[0]
push eax
sub esp, 0x494
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 - 0x46c], ecx
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004a03d0
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.004a03d0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea eax, [ebp - 0x420]
push eax
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.004d2ec8
add esp, 0x14
call fcn.00413540
mov ecx, eax
call fcn.00413670
mov dword [ebp - 0x47c], eax
push 0
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x47c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x47c]
mov eax, dword [edx + 0x30]
call eax
mov dword [ebp - 0x488], eax
mov ecx, dword [ebp - 0x488]
mov dword [ebp - 0x48c], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x48c]
call fcn.00417670
push eax
lea ecx, [ebp - 0x478]
call fcn.00403720
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x438]
call fcn.00409d80
lea ecx, [ebp - 0x470]
call fcn.004037a0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ebp - 0x478]
push eax
push str._sLog_s.log
lea ecx, [ebp - 0x470]
push ecx
call fcn.004043f0
add esp, 0x10
lea ecx, [ebp - 0x474]
call fcn.004037a0
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x470]
push edx
push str._s.on
lea eax, [ebp - 0x474]
push eax
call fcn.004043f0
add esp, 0xc
lea ecx, [ebp - 0x474]
call fcn.00403a90
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43571a
mov ecx, dword [ebp - 0x46c]
mov byte [ecx + 4], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x474]
call fcn.00403900
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x470]
call fcn.00403900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.00403900
jmp 0x43584f
mov edx, dword [ebp - 0x46c]
mov byte [edx + 4], 1
push 0x28
call fcn.0046625a
add esp, 4
mov dword [ebp - 0x480], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x480], 0
je 0x435760
lea ecx, [ebp - 0x470]
call fcn.00403a90
push eax
mov ecx, dword [ebp - 0x480]
call fcn.00434b80
mov dword [ebp - 0x484], eax
jmp 0x43576a
mov dword [ebp - 0x484], 0
mov eax, dword [ebp - 0x484]
mov dword [ebp - 0x490], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x46c]
mov edx, dword [ebp - 0x490]
mov dword [ecx + 0x20], edx
push str._____________________log_start_____________________________r_n
lea eax, [ebp - 0x468]
push eax
mov ecx, dword [ebp - 0x46c]
call fcn.00435450
mov dword [ebp - 0x494], eax
mov ecx, dword [ebp - 0x494]
mov dword [ebp - 0x498], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x498]
push edx
lea eax, [ebp - 0x450]
push eax
call fcn.00434420
add esp, 0xc
mov dword [ebp - 0x49c], eax
mov ecx, dword [ebp - 0x49c]
mov dword [ebp - 0x4a0], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x4a0]
push edx
mov eax, dword [ebp - 0x46c]
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp - 0x46c]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x20]
mov edx, dword [eax]
call edx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x450]
call fcn.00409d80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x468]
call fcn.00409d80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x474]
call fcn.00403900
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x470]
call fcn.00403900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.00403900
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