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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x874
mov eax, dword [0x906648]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x850]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push 0x84c
push esi
push eax
mov dword [ebp - 0x868], edi
mov dword [ebp - 0x864], 0
mov dword [ebp - 0x85c], esi
mov dword [ebp - 0x858], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x870], esi
test ebx, ebx
jne 0x55937f
pop edi
pop esi
mov eax, 0x3ea
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063c972
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x559399
pop edi
pop esi
mov eax, 0x3eb
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063c972
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x860]
mov dword [edi], esi
push eax
push ebx
push 0
push str.HKLMSYSTEMCurrentControlSetControlSession_Manager
mov dword [ebp - 0x860], esi
call fcn.005075d0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x55942b
mov eax, dword [ebp - 0x860]
test eax, eax
jle 0x55942b
push eax
call fcn.004f3510
add esp, 4
mov dword [ebp - 0x854], eax
test eax, eax
jne 0x5593f3
mov edi, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0063c972
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x864]
push ecx
push dword [ebp - 0x860]
push eax
push ebx
push 0
push str.HKLMSYSTEMCurrentControlSetControlSession_Manager
call fcn.005077f0
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x55941f
mov edx, dword [ebp - 0x854]
jmp 0x55943b
mov eax, dword [ebp - 0x854]
push eax
jmp 0x5595f7
xor edx, edx
mov dword [ebp - 0x854], edx
test edi, edi
jne 0x5595ff
mov eax, dword [ebp - 0x864]
test eax, eax
je 0x5595df
xor ecx, ecx
mov dword [ebp - 0x874], ecx
test eax, eax
je 0x5595df
nop dword [eax]
mov esi, dword [edx + ecx*4]
movzx eax, word [esi]
cmp eax, 0x21
je 0x559470
cmp eax, 0x40
jne 0x55947d
add esi, 2
mov dword [ebp - 0x870], 1
mov ebx, dword [edx + ecx*4 + 4]
add esi, 8
test ebx, ebx
je 0x55949f
push ebx
call fcn.004f36b0
add esp, 4
mov dword [ebp - 0x86c], 1
test eax, eax
jne 0x5594a9
mov dword [ebp - 0x86c], 0
push 0x6e747551
lea eax, [ebp - 0x85c]
push eax
push esi
call fcn.00557250
mov esi, dword [ebp - 0x85c]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x55959a
push eax
push 0xbcf
lea eax, [ebp - 0x850]
push esi
push eax
call fcn.005c7bc0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x55959a
lea eax, [ebp - 0x850]
push eax
push esi
call fcn.005c8380
add esp, 8
test eax, eax
jne 0x55952f
push eax
lea eax, [ebp - 0x858]
push eax
push esi
call fcn.005c6880
add esp, 0xc
test eax, eax
jne 0x55952f
mov eax, dword [ebp - 0x858]
cmp eax, 1
je 0x5595c4
cmp eax, 2
je 0x5595c4
cmp dword [ebp - 0x86c], 1
jne 0x55957d
push 0
lea eax, [ebp - 0x858]
add ebx, 8
push eax
push ebx
call fcn.005c6880
mov edi, eax
add esp, 0xc
mov eax, dword [ebp - 0x858]
cmp eax, 2
je 0x55955f
cmp eax, 1
jne 0x55957d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x5595bc
xor edi, edi
cmp dword [ebp - 0x870], edi
jne 0x5595c2
mov eax, dword [ebp - 0x868]
mov dword [eax], edi
lea eax, [ebp - 0x850]
push eax
call fcn.005c8270
push esi
call fcn.004f3570
add esp, 8
xor esi, esi
mov dword [ebp - 0x85c], esi
mov ecx, dword [ebp - 0x874]
add ecx, 2
mov dword [ebp - 0x874], ecx
cmp ecx, dword [ebp - 0x864]
jae 0x5595df
mov edx, dword [ebp - 0x854]
jmp 0x559460
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
mov eax, dword [ebp - 0x868]
mov dword [eax], 1
lea eax, [ebp - 0x850]
push eax
call fcn.005c8270
add esp, 4
mov eax, dword [ebp - 0x854]
test eax, eax
je 0x5595f2
push eax
call fcn.004f3570
add esp, 4
test esi, esi
je 0x5595ff
push esi
call fcn.004f3570
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0063c972
mov esp, ebp
pop ebp
ret