Function at 0x502ce0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x5a5f7e
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x60f520]
xor eax, esp
mov dword [esp + 0x84], eax
push esi
push edi
mov eax, dword [0x60f520]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
call fcn.005031f0
mov dword [esp + 0xa0], 0
push dword [esp + 0x1c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x502da5
xorps xmm0, xmm0
movdqa xmmword [esp + 0x34], xmm0
psrldq xmm0, 8
movd eax, xmm0
mov dword [esp + 0x40], 0
and eax, 0xfffffe00
mov dword [esp + 0x3c], eax
mov byte [esp + 0xa0], 2
lea edx, [esp + 0x34]
mov ecx, dword [esp + 0x1c]
call fcn.0050bfd0
mov eax, dword [esp + 0x3c]
test al, al
je 0x502df5
cmp al, 7
je 0x502df5
lea ecx, [esp + 0x34]
mov byte [esp + 0xa0], 0
call fcn.004e6420
xor esi, esi
mov dword [esp + 0xa0], 0xffffffff
or ecx, 0xffffffff
mov edi, dword [esp + 0x1c]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x502dd0
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.0055199a
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
movq qword [esp + 0x20], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
push ecx
push str.send_date
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa8], 3
call fcn.004e6b80
lea edx, [esp + 0x20]
mov ecx, eax
call fcn.005038c0
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
sub eax, edi
sar eax, 2
cmp eax, 3
jb 0x502e96
mov ecx, dword [edi]
cmp ecx, 0x7d0
jb 0x502e96
mov eax, dword [edi + 4]
cmp eax, 1
jb 0x502e96
cmp eax, 0xc
ja 0x502e96
mov eax, dword [edi + 8]
cmp eax, 1
jb 0x502e96
cmp eax, 0x1f
ja 0x502e96
push ecx
push 0
push 0
push 0
push eax
push dword [edi + 4]
push ecx
lea ecx, [esp + 0x30]
call fcn.004fa890
mov ecx, dword [eax]
mov dword [esi + 0x48], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x4c], eax
push 0
call fcn.00556115
add esp, 4
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x30], edx
lea ecx, [esp + 0x2c]
push eax
call fcn.00504960
test eax, eax
je 0x502ebf
mov esi, dword [eax + 0xc]
jmp 0x502ec1
xor esi, esi
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x6c]
add eax, 0x48
push ecx
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.00504960
test eax, eax
je 0x502ee1
mov eax, dword [eax + 0xc]
jmp 0x502ee3
xor eax, eax
cmp esi, eax
mov esi, dword [esp + 0x10]
je 0x502f24
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 4], eax
lea ecx, [esi + 0x40]
mov eax, dword [esi + 0x40]
push dword [eax + 4]
call fcn.0041af00
mov eax, dword [esi + 0x40]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x40]
mov dword [eax], eax
mov eax, dword [esi + 0x40]
mov dword [eax + 8], eax
mov dword [esi + 0x44], 0
jmp 0x502f3d
push ecx
push str.reports
lea ecx, [esp + 0x3c]
call fcn.004e6b80
lea edx, [esi + 0x40]
mov ecx, eax
call fcn.00503a40
test edi, edi
je 0x502f4a
push edi
call fcn.00551995
add esp, 4
lea ecx, [esp + 0x34]
mov byte [esp + 0xa0], 0
call fcn.004e6420
mov esi, 1
jmp 0x502da7