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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b2b9
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x4690f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x2e0], ebx
mov dword [ebp - 0x2ec], 0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00431bc0
mov eax, dword [0x46c9c4]
add esp, 0xc
mov dword [ebp - 0x2e8], 0x208
test al, 1
jne 0x417d73
or eax, 1
mov dword [0x46c9c4], eax
push ecx
push 0x4597bc
push 0x14
push ecx
mov ecx, 0x46c93c
mov byte [ebp - 4], 1
call fcn.00418740
push 0x44f140
call fcn.0042fb26
add esp, 4
mov byte [ebp - 4], 0
mov edx, dword [0x46c940]
xor eax, eax
mov dword [ebp - 0x2b0], 7
mov dword [ebp - 0x2b4], 0
mov word [ebp - 0x2c4], ax
cmp word [edx], ax
jne 0x417d9f
xor ecx, ecx
jmp 0x417db3
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417da4
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c4]
call fcn.004015d0
lea eax, [ebp - 0x2c4]
push eax
mov edx, edi
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 2
call fcn.00402590
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x2b0], 8
jb 0x417df6
push dword [ebp - 0x2c4]
call fcn.0042f2d8
add esp, 4
xor eax, eax
cmp dword [ebp - 0x250], 8
lea ecx, [ebp - 0x2e8]
push ecx
mov word [ebp - 0x2c4], ax
lea ecx, [ebp - 0x218]
lea eax, [ebp - 0x264]
cmovae eax, dword [ebp - 0x264]
push ecx
push eax
push SysReAllocString
mov dword [ebp - 0x2b0], 7
mov dword [ebp - 0x2b4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
jne 0x4182f9
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], eax
mov word [ebp - 0x24c], ax
cmp word [ebp - 0x218], ax
jne 0x417e6d
xor ecx, ecx
jmp 0x417e85
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417e76
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x24c]
call fcn.004015d0
cmp dword [ebp - 0x21c], 8
jb 0x417eaf
push dword [ebp - 0x230]
call fcn.0042f2d8
add esp, 4
xor eax, eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
call fcn.00402530
cmp dword [ebp - 0x238], 8
jb 0x417ef5
push dword [ebp - 0x24c]
call fcn.0042f2d8
add esp, 4
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
mov ecx, 0x22
cmp cx, word [eax]
jne 0x418028
push 0xffffffffffffffff
push 1
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x230]
call fcn.004050c0
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x417f79
cmp dword [ebp - 0x21c], 8
jb 0x417f50
push dword [ebp - 0x230]
call fcn.0042f2d8
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00402530
cmp dword [ebp - 0x268], 8
jb 0x417f90
push dword [ebp - 0x27c]
call fcn.0042f2d8
add esp, 4
push 1
push 0
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x234], 0x22
call fcn.00405170
push eax
push 0
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x230]
call fcn.004050c0
mov esi, eax
lea eax, [ebp - 0x230]
cmp eax, esi
je 0x418011
cmp dword [ebp - 0x21c], 8
jb 0x417fe8
push dword [ebp - 0x230]
call fcn.0042f2d8
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00402530
cmp dword [ebp - 0x268], 8
jb 0x418028
push dword [ebp - 0x27c]
call fcn.0042f2d8
add esp, 4
mov eax, dword [ebp - 0x220]
push 0xffffffffffffffff
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x230]
call fcn.004050c0
mov byte [ebp - 4], 5
mov eax, dword [0x46c858]
test al, 1
jne 0x418083
or eax, 1
mov dword [0x46c858], eax
push ecx
push str.U__
push 5
push ecx
mov ecx, 0x46c978
mov byte [ebp - 4], 6
call fcn.00418740
push 0x44f160
call fcn.0042fb26
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [0x46c97c]
cmp word [edx], 0
jne 0x418093
xor ecx, ecx
jmp 0x4180af
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x4180a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4180a0
sub ecx, esi
sar ecx, 1
push ecx
push edx
push dword [ebp - 0x284]
push ecx
lea ecx, [ebp - 0x294]
call fcn.00405300
test eax, eax
jne 0x4182ab
sub esp, 8
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x234], 0x5c
call fcn.00405260
inc eax
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x2e4], eax
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x230]
call fcn.004050c0
mov byte [ebp - 4], 7
push 0x2a
push dword [ebp - 0x23c]
xor eax, eax
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x298], 7
mov dword [ebp - 0x29c], 0
mov word [ebp - 0x2ac], ax
call fcn.00411160
mov byte [ebp - 4], 8
cmp dword [ebp - 0x298], 8
lea eax, [ebp - 0x2ac]
cmovae eax, dword [ebp - 0x2ac]
cmp dword [ebp - 0x238], 8
lea ecx, [ebp - 0x24c]
cmovae ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x23c]
lea ebx, [ebp - 0x24c]
cmovae ebx, dword [ebp - 0x24c]
lea esi, [ecx + eax*2]
cmp ebx, esi
je 0x4181a7
mov edi, dword [ebp - 0x234]
sub edi, ebx
mov edi, edi
movzx eax, word [ebx]
push eax
call fcn.004316fa
mov word [edi + ebx], ax
add ebx, 2
add esp, 4
cmp ebx, esi
jne 0x418190
push dword [ebp - 0x2e4]
lea eax, [ebp - 0x2dc]
push 0
push eax
lea ecx, [ebp - 0x230]
call fcn.004050c0
lea ecx, [ebp - 0x2ac]
push ecx
mov edx, eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 9
call fcn.00402610
mov esi, eax
lea eax, [ebp - 0x230]
add esp, 4
cmp eax, esi
je 0x418228
cmp dword [ebp - 0x21c], 8
jb 0x4181ff
push dword [ebp - 0x230]
call fcn.0042f2d8
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
call fcn.00402530
cmp dword [ebp - 0x268], 8
jb 0x41823f
push dword [ebp - 0x27c]
call fcn.0042f2d8
add esp, 4
xor eax, eax
cmp dword [ebp - 0x2c8], 8
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
jb 0x418273
push dword [ebp - 0x2dc]
call fcn.0042f2d8
add esp, 4
cmp dword [ebp - 0x298], 8
jb 0x41828a
push dword [ebp - 0x2ac]
call fcn.0042f2d8
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x238], 8
jb 0x4182a5
push dword [ebp - 0x24c]
call fcn.0042f2d8
add esp, 4
mov ebx, dword [ebp - 0x2e0]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x418380
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x418380
mov byte [ebp - 4], 4
cmp dword [ebp - 0x280], 8
jb 0x4182f9
push dword [ebp - 0x294]
call fcn.0042f2d8
add esp, 4
xor eax, eax
push eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push 0x4584bc
mov ecx, ebx
mov word [ebx], ax
call fcn.004015d0
cmp dword [ebp - 0x250], 8
jb 0x418330
push dword [ebp - 0x264]
call fcn.0042f2d8
add esp, 4
xor eax, eax
cmp dword [ebp - 0x21c], 8
mov word [ebp - 0x264], ax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x250], 7
jb 0x418360
push dword [ebp - 0x230]
call fcn.0042f2d8
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f2dd
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x230]
push eax
mov ecx, ebx
call fcn.004024c0
cmp dword [ebp - 0x280], 8
jb 0x4183a5
push dword [ebp - 0x294]
call fcn.0042f2d8
add esp, 4
xor eax, eax
mov dword [ebp - 0x280], 7
mov dword [ebp - 0x284], 0
mov word [ebp - 0x294], ax
jmp 0x418319