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

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4d57fc]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
xor ebx, ebx
push esi
mov esi, dword [esp + 0x11c]
push edi
push esi
mov dword [esp + 0x14], esi
xor edi, edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x419bc9
test al, 0x50
jne 0x419bc9
call fcn.00418e80
cmp eax, 1
je 0x41970c
lea ebx, [edi + 0x7e]
jmp 0x419bce
push 0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 2
push 0x400
push esi
mov esi, dword [0x4d77b0]
mov ecx, esi
push 1
call dword [0x4b9328]
call esi
mov edi, eax
test edi, edi
jne 0x419756
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x419bce
push 0x23f0
call fcn.004160d0
mov edi, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x419a81
push edi
call fcn.00415e90
add esp, 4
test eax, eax
je 0x419a81
mov eax, dword [0x4d77c0]
xorps xmm0, xmm0
movq qword [esp + 0x10c], xmm0
mov dword [esp + 0x114], ebx
mov dword [esp + 0x10], ebx
movups xmmword [esp + 0xfc], xmm0
test eax, eax
jne 0x4197c3
push eax
push 0x4bd104
call fcn.004162d0
add esp, 8
mov dword [0x4d77c0], eax
test eax, eax
je 0x419908
cmp dword [0x4d77d4], ebx
jne 0x4197e9
push 0x4bd1dc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d77d4], eax
test eax, eax
je 0x419908
mov eax, dword [0x4d77c0]
cmp dword [0x4d77d8], ebx
jne 0x41980f
push 0x4bd1ec
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d77d8], eax
test eax, eax
je 0x419908
mov eax, dword [0x4d77c0]
cmp dword [0x4d77e0], ebx
jne 0x419835
push str.QueryServiceStatus
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d77e0], eax
test eax, eax
je 0x419908
mov eax, dword [0x4d77c0]
cmp dword [0x4d77e4], ebx
jne 0x419856
push 0x4bd210
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4d77e4], eax
test eax, eax
je 0x419908
mov esi, dword [0x4d77d4]
mov ecx, esi
push 0x80000000
push 0
push 0
call dword [0x4b9328]
call esi
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4198fe
mov esi, dword [0x4d77d8]
mov ecx, esi
push 4
push str.CryptSvc
push eax
call dword [0x4b9328]
call esi
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4198ea
mov esi, dword [0x4d77e0]
lea ecx, [esp + 0xfc]
push ecx
push eax
mov ecx, esi
call dword [0x4b9328]
call esi
test eax, eax
je case.default.0x4198c7
mov eax, dword [esp + 0x100]
add eax, 0xfffffffc
cmp eax, 3
ja case.default.0x4198c7
jmp dword [eax*4 + 0x419c2c]
mov dword [esp + 0x10], 1
push dword [esp + 0x2c]
mov esi, dword [0x4d77e4]
mov ecx, esi
call dword [0x4b9328]
call esi
push dword [esp + 0x1c]
mov esi, dword [0x4d77e4]
mov ecx, esi
call dword [0x4b9328]
call esi
cmp dword [esp + 0x10], ebx
jne 0x419a81
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov esi, dword [0x4d77ac]
mov ecx, esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 6
push ebx
call dword [0x4b9328]
call esi
test eax, eax
jne 0x419957
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, 1
xor ebx, ebx
jmp 0x419bce
push dword [esp + 0x10]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x41998b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, 1
xor ebx, ebx
jmp 0x419bce
mov esi, dword [0x4d77ac]
lea eax, [esp + 0x10]
push eax
push edi
push 0
push 6
push ebx
mov ecx, esi
call dword [0x4b9328]
call esi
test eax, eax
jne 0x4199cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, 1
xor ebx, ebx
jmp 0x419bce
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov esi, dword [0x4d77a8]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], ecx
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
push 0
mov dword [esp + 0x94], eax
lea eax, [esp + 0x90]
push eax
push 0xb0000
push 0
push 0x10001
push dword [esp + 0x30]
mov dword [esp + 0xac], ecx
mov ecx, esi
call dword [0x4b9328]
call esi
mov esi, eax
test esi, esi
jne 0x419a46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, 1
xor ebx, ebx
jmp 0x419bce
test ebp, ebp
je 0x419a56
push esi
call fcn.00415e00
add esp, 4
mov dword [ebp], eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov esi, dword [0x4d77a4]
mov ecx, esi
call dword [0x4b9328]
call esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edi, [esi + 1]
xor ebx, ebx
jmp 0x419bce
xorps xmm0, xmm0
mov dword [esp + 0x60], ebx
lea eax, [esp + 0x64]
movlpd qword [esp + 0x58], xmm0
or dword [esp + 0x58], 0x1000
push 0x23f0
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x54], xmm0
mov dword [esp + 0x68], 0x10
mov dword [esp + 0x6c], edi
mov dword [esp + 0x34], 0x34
mov dword [esp + 0x50], 1
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], 1
mov dword [esp + 0x4c], eax
call fcn.004160d0
add esp, 4
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x1c]
test eax, eax
jne 0x419b22
lea eax, [esp + 0x3c]
push eax
call fcn.00416f20
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x419bce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x419bce
lea eax, [esp + 0x80]
mov dword [esp + 0x94], ebx
mov dword [esp + 0x6c], eax
xorps xmm0, xmm0
lea eax, [esp + 0x3c]
movlpd qword [esp + 0x8c], xmm0
push eax
mov dword [esp + 0x84], 0x18
mov dword [esp + 0x8c], 3
mov dword [esp + 0x88], ebx
call fcn.00416f20
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x419bce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov esi, 1
mov eax, dword [esp + 0x60]
cmp dword [eax + 0xc], esi
jb 0x419bce
push ebp
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 1
mov dword [eax + 4], esi
lea eax, [esp + 0x34]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push eax
call fcn.00416f20
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x419bce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
inc esi
mov eax, dword [esp + 0x60]
cmp esi, dword [eax + 0xc]
jbe 0x419b86
jmp 0x419bce
mov ebx, 2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x419be9
mov esi, dword [0x4d77a0]
mov ecx, esi
push 0
push eax
call dword [0x4b9328]
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x419c02
mov esi, dword [0x4d779c]
mov ecx, esi
push eax
call dword [0x4b9328]
call esi
test edi, edi
jne 0x419c09
push ebx
jmp 0x419c0b
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x118]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00461564
add esp, 0x10c
ret