Function at 0x4e8a80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c5e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5ce104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.0040c540
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [eax - 0xc], 0
jne 0x4e8ade
xor esi, esi
jmp 0x4e8bce
push str.config.ini
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
call fcn.0041c800
add esp, 4
mov byte [ebp - 4], 2
push dword [ebp - 0x18]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4e8b31
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4e8bc2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call fcn.00545a98
cdq
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 0
call fcn.0042e9b0
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push str.act_time
push str.three_end
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00404e00
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4e8bce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e8bcb
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4e8bc6
push 0
push dword [ecx + 4]
call ebx
jmp 0x4e8bce
xor esi, esi
jmp 0x4e8b73
call dword [ebp - 0x2c]
jmp 0x4e8bce
call dword [ebp - 0x2c]
mov byte [ebp - 4], 0
mov eax, edi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x4e8c29
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e8c24
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4e8c1d
push 0
push dword [edx + 4]
call ebx
jmp 0x4e8c29
mov ecx, edx
call dword [ebp - 0x2c]
jmp 0x4e8c29
mov ecx, edx
call dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], edi
dec edi
test edi, edi
jg 0x4e8c6b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4e8c67
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4e8c67
push 0
push dword [edx + 4]
call ebx
jmp 0x4e8c6b
mov ecx, edx
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00522a9a
mov esp, ebp
pop ebp
ret 4