Function at 0x4691f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x5c2460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x8c], 0
mov ebx, ecx
call fcn.00467aa0
mov ecx, esi
mov edi, eax
call fcn.00467aa0
test edi, edi
je 0x469489
test eax, eax
je 0x46931f
mov edx, dword [eax]
lea ecx, [ebp - 0x7c]
push ecx
mov ecx, eax
call dword [edx + 0x30]
mov edx, eax
lea ecx, [ebp - 0x64]
call fcn.004619f0
push eax
lea ecx, [ebp - 0x88]
call fcn.004706f0
cmp dword [ebp - 0x50], 0x10
jb 0x469264
push dword [ebp - 0x64]
call fcn.0050269b
add esp, 4
cmp dword [ebp - 0x68], 8
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
jb 0x469287
push dword [ebp - 0x7c]
call fcn.0050269b
add esp, 4
mov eax, dword [edi]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, edi
call dword [eax + 0x30]
mov edx, eax
lea ecx, [ebp - 0x7c]
call fcn.004619f0
push eax
lea ecx, [ebp - 0x58]
call fcn.004706f0
cmp dword [ebp - 0x68], 0x10
jb 0x4692b6
push dword [ebp - 0x7c]
call fcn.0050269b
add esp, 4
cmp dword [ebp - 0x20], 8
mov dword [ebp - 0x68], 0xf
mov dword [ebp - 0x6c], 0
mov byte [ebp - 0x7c], 0
jb 0x4692d9
push dword [ebp - 0x34]
call fcn.0050269b
add esp, 4
lea edx, [ebp - 0x88]
lea ecx, [ebp - 0x58]
call fcn.00470600
lea ecx, [ebp - 0x58]
test eax, eax
jg 0x46930f
call fcn.004706c0
lea ecx, [ebp - 0x88]
call fcn.004706c0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00501d03
mov esp, ebp
pop ebp
ret
call fcn.004706c0
lea ecx, [ebp - 0x88]
call fcn.004706c0
lea eax, [ebp - 0x1c]
push eax
push ecx
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00459820
add esp, 4
mov ecx, eax
call fcn.00459820
cmp dword [ebp - 0x20], 8
jb 0x46934a
push dword [ebp - 0x34]
call fcn.0050269b
add esp, 4
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmovae eax, dword [ebp - 0x1c]
push eax
call edi
cmp eax, 0xffffffff
jne 0x46936d
xor edx, edx
lea ecx, [ebp - 0x1c]
call fcn.00458200
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00459820
lea ecx, [ebp - 0x1c]
cmp ecx, eax
je 0x469389
push 0xffffffffffffffff
push 0
push eax
call fcn.004059ba
cmp dword [ebp - 0x20], 8
jb 0x46939a
push dword [ebp - 0x34]
call fcn.0050269b
add esp, 4
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4693b7
xor edx, edx
lea ecx, [ebp - 0x1c]
call fcn.00458200
mov edx, esi
mov ecx, ebx
call fcn.004588b0
test al, al
jne 0x469478
sub esp, 8
xor edx, edx
mov ecx, esp
mov eax, 0xd
mov dword [ecx], str.old_sesvc.exe
cmp word [str.old_sesvc.exe], dx
cmove eax, edx
mov dword [ecx + 4], eax
lea eax, [ebp - 0x4c]
push eax
push ecx
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00459820
add esp, 4
mov ecx, eax
call fcn.00459bb0
cmp dword [ebp - 0x20], 8
jb 0x469412
push dword [ebp - 0x34]
call fcn.0050269b
add esp, 4
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push eax
call edi
cmp eax, 0xffffffff
jne 0x469453
mov ecx, esi
call fcn.00459f50
test al, al
jne 0x469453
lea ecx, [ebp - 0x4c]
call fcn.00459f50
test al, al
jne 0x469453
lea edx, [ebp - 0x4c]
mov ecx, esi
call fcn.00458930
test al, al
je 0x469453
mov edx, esi
mov ecx, ebx
call fcn.004588b0
cmp dword [ebp - 0x38], 8
jb 0x469464
push dword [ebp - 0x4c]
call fcn.0050269b
add esp, 4
xor eax, eax
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], ax
cmp dword [ebp - 8], 8
jb 0x469489
push dword [ebp - 0x1c]
call fcn.0050269b
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501d03
mov esp, ebp
pop ebp
ret