Function at 0x4687a8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.004588f0
mov eax, dword [0x7ca418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x61c]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.004ea000
push str.C:log_
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.004ffb16
push 0x800
lea eax, [ebp - 0x1028]
push ebx
push eax
call fcn.004ea000
push 0x70d3b4
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.log
push eax
call fcn.004686b5
add esp, 0x34
call fcn.0045ff78
test al, al
je 0x468842
sahf
mov esp, 0xe0e7ddf4
stc
int3
call fcn.0045ffbd
test al, al
je 0x468864
push eax
arpl word [edx - 0x63], di
retf 0x76d7
push esi
lea eax, [ebp - 0x824]
push ebx
push eax
call fcn.004ea000
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004ea000
add esp, 0x18
lea eax, [ebp - 0x20c]
mov esi, 0x104
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.004f2ba9
pop ecx
test eax, eax
je 0x468a68
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004ea15a
pop ecx
pop ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x468a68
lea eax, [ebp - 0x20c]
push eax
call fcn.004f2ba9
lea ecx, [ebp - 0x20a]
lea eax, [ecx + eax*2]
push eax
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.004ffb16
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x414]
push str._s_s.txt
push eax
call fcn.004686b5
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x1028]
push 0x3ff
push 0x400
push eax
call fcn.00423630
push ebx
call fcn.004f236c
mov dword [ebp - 0x2038], eax
lea eax, [ebp - 0x2038]
push eax
mov dword [ebp - 0x2034], edx
call fcn.00500094
add esp, 0x40
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
test esi, esi
je 0x468a68
lea ecx, [ebp - 0x1028]
push ecx
push eax
push dword [esi]
mov eax, dword [esi + 0x10]
push dword [esi + 4]
inc eax
push dword [esi + 8]
push dword [esi + 0xc]
push eax
mov eax, dword [esi + 0x14]
add eax, 0x76c
push eax
lea eax, [ebp - 0x2028]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.004686d3
add esp, 0x28
call fcn.004602f9
test al, al
je 0x4689b6
ror eax, 0x3b
push 0xb97eb48a
loop 0x46895f
mulps xmm1, xmmword [ebx + 0x33b0a922]
shl byte [esi - 0x77], 0x85
salc
idiv edi
dec dword [ebp - 0x4137b]
call dword [eax - 1]
adc eax, sym.imp.SHLWAPI.dll_PathFileExistsW
xor eax, eax
mov word [ebp - 0x82a], ax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor edi, edi
inc edi
test eax, eax
lea eax, [ebp - 0x414]
push 0x71407c
push eax
cmovne ebx, edi
call fcn.004fa468
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x468a68
test ebx, ebx
jne 0x468a0e
push esi
push 2
lea eax, [ebp - 0x2030]
mov dword [ebp - 0x2030], 0xfeff
push edi
push eax
call fcn.004ffdb2
add esp, 0x10
lea eax, [ebp - 0x2028]
push eax
call fcn.004f2ba9
push esi
add eax, eax
push eax
lea eax, [ebp - 0x2028]
push edi
push eax
call fcn.004ffdb2
push esi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xd
push edi
push eax
call fcn.004ffdb2
push esi
push 2
lea eax, [ebp - 0x202c]
mov dword [ebp - 0x202c], 0xa
push edi
push eax
call fcn.004ffdb2
push esi
call fcn.004fa50c
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004584a2
mov esp, ebp
pop ebp
ret