Function at 0x70e1c753
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x70e6e09a
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov esi, ecx
xor edi, edi
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x23c], edi
call fcn.70df39c7
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x250]
push ecx
mov byte [ebp - 4], 2
mov esi, dword [esi]
mov edx, dword [reloc.OLEAUT32.dll_SysReAllocString]
push 0x20019
push edi
add esi, 4
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x70e1c88d
push 4
call fcn.70df39ac
add esp, 4
cmp eax, edi
je 0x70e1c886
mov ecx, dword [ebp - 0x250]
mov dword [eax], ecx
mov ebx, eax
mov dword [ebp - 0x25c], ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x258], 0x70e1cc08
mov dword [ebp - 0x254], 0x70e1cc14
mov edi, edi
cmp edi, 2
jae 0x70e1caee
mov esi, dword [ebp + edi*4 - 0x258]
mov eax, dword [ebx]
push 0
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x70e1cae8
lea ecx, [ebp - 0x230]
call fcn.70df39c7
push esi
push ebx
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 4
call fcn.70dffa58
sub esp, 8
mov esi, esp
mov dword [ebp - 0x260], esp
push 4
mov dword [ebp - 0x244], esi
mov dword [esi], 0
call fcn.70df39ac
add esp, 4
test eax, eax
je 0x70e1c8c1
mov dword [eax], 1
jmp 0x70e1c8c3
xor eax, eax
jmp 0x70e1c7f1
mov ecx, eax
jle 0x70e1c89d
and ecx, 0xffff
or ecx, 0x80070000
push 0x70e77870
lea edx, [ebp - 0x228]
push edx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], 0x70e0795c
mov dword [ebp - 0x20], eax
call fcn.70e610ef
xor eax, eax
mov dword [esi + 4], eax
mov byte [ebp - 4], 5
cmp esi, dword [ebp + 0xc]
je 0x70e1c905
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x70e1c8f1
mov eax, dword [esi + 4]
push eax
call fcn.70df3455
mov eax, dword [esi]
add esp, 4
push eax
call fcn.70df3455
add esp, 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub esp, 8
mov byte [ebp - 4], 6
mov esi, esp
mov dword [ebp - 0x244], esp
push 4
mov dword [ebp - 0x244], esi
mov dword [esi], 0
call fcn.70df39ac
add esp, 4
test eax, eax
je 0x70e1c936
mov dword [eax], 1
jmp 0x70e1c938
xor eax, eax
mov dword [esi + 4], eax
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 7
cmp esi, edx
je 0x70e1c989
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x70e1c96b
mov eax, dword [esi + 4]
push eax
call fcn.70df3455
mov eax, dword [esi]
add esp, 4
push eax
call fcn.70df3455
add esp, 4
mov eax, dword [ebp - 0x230]
mov dword [esi], eax
mov ecx, dword [ebp - 0x22c]
mov dword [esi + 4], ecx
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 6
push eax
mov byte [ebp - 4], 4
call fcn.70e1ec54
mov esi, eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 8
cmp ecx, esi
je 0x70e1c9f4
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x70e1c9dc
mov eax, dword [ebp - 0x22c]
push eax
call fcn.70df3455
mov ecx, dword [ebp - 0x230]
add esp, 4
push ecx
call fcn.70df3455
add esp, 4
mov edx, dword [esi]
mov dword [ebp - 0x230], edx
mov esi, dword [esi + 4]
push esi
mov dword [ebp - 0x22c], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x248]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push eax
call esi
test eax, eax
jne 0x70e1ca29
mov ecx, dword [ebp - 0x248]
push ecx
call fcn.70df3455
mov edx, dword [ebp - 0x24c]
add esp, 4
push edx
call fcn.70df3455
add esp, 4
mov eax, dword [ebp - 0x230]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x70e1cab9
mov eax, dword [ebp - 0x234]
push eax
call esi
test eax, eax
jne 0x70e1ca69
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.70df3455
mov edx, dword [ebp - 0x238]
add esp, 4
push edx
call fcn.70df3455
add esp, 4
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp - 0x22c]
push eax
mov dword [ebp - 0x234], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x22c]
push ecx
call esi
test eax, eax
jne 0x70e1caf4
mov edx, dword [ebp - 0x22c]
push edx
call fcn.70df3455
mov eax, dword [ebp - 0x230]
add esp, 4
push eax
call fcn.70df3455
add esp, 4
jmp 0x70e1caf4
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x22c]
push ecx
call esi
test eax, eax
jne 0x70e1cae8
mov edx, dword [ebp - 0x22c]
push edx
call fcn.70df3455
mov eax, dword [ebp - 0x230]
add esp, 4
push eax
call fcn.70df3455
add esp, 4
inc edi
jmp 0x70e1c813
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov byte [ebp - 4], 2
test ebx, ebx
je 0x70e1cb0b
push ebx
call fcn.70df62ac
push ebx
call fcn.70df3455
add esp, 4
mov ebx, 1
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x240]
push 4
mov dword [edi], 0
call fcn.70df39ac
add esp, 4
test eax, eax
je 0x70e1cb31
mov dword [eax], ebx
jmp 0x70e1cb33
xor eax, eax
mov dword [edi + 4], eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0xa
cmp edi, ecx
je 0x70e1cb7a
push eax
call esi
test eax, eax
jne 0x70e1cb62
mov eax, dword [edi + 4]
push eax
call fcn.70df3455
mov eax, dword [edi]
add esp, 4
push eax
call fcn.70df3455
add esp, 4
mov eax, dword [ebp - 0x234]
mov edx, dword [ebp - 0x238]
push eax
mov dword [edi], edx
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
or dword [ebp - 0x23c], ebx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x234]
push eax
call esi
test eax, eax
jne 0x70e1cbaf
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.70df3455
mov edx, dword [ebp - 0x238]
add esp, 4
push edx
call fcn.70df3455
add esp, 4
mov eax, edi
jmp 0x70e1cbe8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.70df25ed
mov esp, ebp
pop ebp
ret 8