Function at 0x4516b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46e738
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x48b670]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0
call fcn.004194d8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x451701
push 0x80004005
call fcn.00401f50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
call fcn.004194d8
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45172e
push 0x80004005
call fcn.00401f50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0041a82f
lea ecx, [ebp - 0x50]
push ecx
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x4a]
movzx eax, word [ebp - 0x4e]
movzx ecx, word [ebp - 0x50]
push edx
push eax
push ecx
lea edx, [ebp - 0x14]
push str._04d__02d__02d.txt
push edx
call fcn.00402020
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x20]
push esi
push ecx
call fcn.0040c520
lea edx, [ebp - 0x14]
push edx
push eax
lea eax, [ebp - 0x1c]
mov bl, 4
push eax
mov byte [ebp - 4], bl
call fcn.0040c520
add esp, 0x2c
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.004037c0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4517c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4517ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esi + 0x10]
call fcn.004056c0
lea ecx, [ebp - 0x30]
call fcn.0041949c
mov ebx, dword [ebp - 0x14]
push ebx
mov byte [ebp - 4], 7
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x451811
mov dword [esi + 0xc], eax
jmp 0x451818
mov dword [esi + 0xc], 1
push 0
push 0xb042
push ebx
lea ecx, [ebp - 0x40]
call fcn.0041aca7
test eax, eax
jne 0x4518be
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov byte [ebp - 4], 3
call fcn.004194b4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0041a937
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45186f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45188f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451aa2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x451aa2
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x28]
push 2
push 0
push 0
lea ecx, [ebp - 0x40]
call eax
cmp dword [esi + 0xc], 0
jne 0x4518ea
push 2
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x20], 0xfeff
call fcn.0041a565
movzx edx, word [ebp - 0x42]
movzx eax, word [ebp - 0x44]
movzx ecx, word [ebp - 0x46]
push edx
movzx edx, word [ebp - 0x48]
push eax
push ecx
push edx
lea eax, [ebp - 0x18]
push 0x479024
push eax
call fcn.00402020
add esp, 0x18
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.0040c520
add esp, 0xc
push 0x47a220
push eax
lea ecx, [ebp - 0x20]
mov bl, 8
push ecx
mov byte [ebp - 4], bl
call fcn.0040c5e0
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 9
call fcn.004037c0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x451969
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45198c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.0041a565
mov dword [ebp - 4], 3
call fcn.004194b4
lea ecx, [ebp - 0x40]
call fcn.0041a7c9
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0041a937
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4519eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451a0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451a34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4