Function at 0x42a520
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496d54
mov eax, dword fs:[0]
push eax
sub esp, 0x494
mov eax, dword [0x4d7204]
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.004696a0
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.004696a0
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.0047903d
add esp, 0x14
call fcn.004134d0
mov ecx, eax
call fcn.00403290
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.0040fd10
push eax
lea ecx, [ebp - 0x478]
call fcn.004032e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x438]
call fcn.00404c30
lea ecx, [ebp - 0x470]
call fcn.00403360
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.0040ad60
add esp, 0x10
lea ecx, [ebp - 0x474]
call fcn.00403360
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x470]
push edx
push str._s.on
lea eax, [ebp - 0x474]
push eax
call fcn.0040ad60
add esp, 0xc
lea ecx, [ebp - 0x474]
call fcn.00405e20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42a6ca
mov ecx, dword [ebp - 0x46c]
mov byte [ecx + 4], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x474]
call fcn.004049f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x470]
call fcn.004049f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.004049f0
jmp 0x42a7ff
mov edx, dword [ebp - 0x46c]
mov byte [edx + 4], 1
push 0x28
call fcn.0044a88c
add esp, 4
mov dword [ebp - 0x480], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x480], 0
je 0x42a710
lea ecx, [ebp - 0x470]
call fcn.00405e20
push eax
mov ecx, dword [ebp - 0x480]
call fcn.00429ab0
mov dword [ebp - 0x484], eax
jmp 0x42a71a
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.0042a400
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.00412bd0
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.00404c30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x468]
call fcn.00404c30
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x474]
call fcn.004049f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x470]
call fcn.004049f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.004049f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ab64
mov esp, ebp
pop ebp
ret