Function at 0x405fc0
Capabilities:
Access peb ldr_data
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c488
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4b0
mov eax, dword [0x48d06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [ebp - 0x4a4], 0
cmp dword [edi + 0x30], 0
mov dword [ebp - 0x4a0], eax
je 0x406029
mov eax, 1
jmp 0x4066fa
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 0xf
mov byte [ebp - 0x478], 0
mov dword [ebp - 4], 0
cmp dword [edx + 0x10], 0
jne 0x40625b
push 0x20a
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00424870
add esp, 0xc
lea eax, [ebp - 0x228]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x228]
push 0x5c
push eax
call fcn.00423b1d
xor ecx, ecx
add esp, 8
mov word [eax + 2], cx
xor eax, eax
mov dword [ebp - 0x450], ecx
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x44c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x460], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4060c0
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x460]
call fcn.00407590
push 0x45ed4c
lea edx, [ebp - 0x460]
mov dword [ebp - 0x4a4], 1
lea ecx, [ebp - 0x490]
call fcn.00407820
mov esi, eax
add esp, 4
lea eax, [ebp - 0x460]
cmp eax, esi
je 0x406142
mov ecx, eax
call fcn.00407460
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x460], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x450], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x47c]
cmp edx, 8
jb 0x406182
mov ecx, dword [ebp - 0x490]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406178
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40671a
push edx
push ecx
call fcn.0042297a
add esp, 8
push ecx
lea edx, [ebp - 0x460]
lea ecx, [ebp - 0x448]
call fcn.00408520
add esp, 4
lea ecx, [ebp - 0x478]
push eax
call fcn.00402780
mov edx, dword [ebp - 0x434]
cmp edx, 0x10
jb 0x4061dd
mov ecx, dword [ebp - 0x448]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4061d3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40671f
push edx
push ecx
call fcn.0042297a
add esp, 8
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x44c]
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0xf
mov byte [ebp - 0x448], 0
cmp edx, 8
jb 0x40623c
mov ecx, dword [ebp - 0x460]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406232
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406724
push edx
push ecx
call fcn.0042297a
add esp, 8
xor eax, eax
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 7
mov word [ebp - 0x460], ax
jmp 0x4062cb
push ecx
lea ecx, [ebp - 0x448]
call fcn.00408520
add esp, 4
lea ecx, [ebp - 0x478]
push eax
call fcn.00402780
mov edx, dword [ebp - 0x434]
cmp edx, 0x10
jb 0x4062b0
mov ecx, dword [ebp - 0x448]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4062a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406729
push edx
push ecx
call fcn.0042297a
add esp, 8
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0xf
mov byte [ebp - 0x448], 0
cmp dword [ebp - 0x464], 0x10
lea eax, [ebp - 0x478]
cmovae eax, dword [ebp - 0x478]
cmp dword [0x48f300], 0
jne 0x4066c0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x48f300], eax
test eax, eax
je 0x4066c0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x48581c
push eax
call esi
push 0x4857f0
push dword [0x48f300]
mov dword [0x48f2f8], eax
call esi
push 0x485804
push dword [0x48f300]
mov dword [0x48f2f4], eax
call esi
push 0x485824
push dword [0x48f300]
mov dword [0x48f2fc], eax
call esi
push 0x48582c
push dword [0x48f300]
mov dword [0x48f304], eax
call esi
mov ecx, dword [0x48f2f8]
mov dword [0x48f2f0], eax
test ecx, ecx
je 0x4066aa
cmp dword [0x48f2f4], 0
je 0x4066aa
cmp dword [0x48f2fc], 0
je 0x4066aa
cmp dword [0x48f304], 0
je 0x4066aa
test eax, eax
je 0x4066aa
push 1
call ecx
mov eax, dword [ebp - 0x4a0]
lea esi, [edi + 0x94]
mov dword [edi + 0x84], 1
mov dword [edi + 0x30], 1
cmp esi, eax
je 0x4063d2
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4063c7
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00407590
push esi
call fcn.00406e80
mov dword [ebp - 0x4a0], eax
xor eax, eax
mov dword [ebp - 0x4a4], edx
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x480], 7
mov word [ebp - 0x494], ax
mov byte [ebp - 4], 2
mov dword [ebp - 0x4ac], eax
lea eax, [ebp - 0x4ac]
push eax
push 1
push 0
push 0x45edb8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406568
mov esi, dword [ebp - 0x4ac]
lea eax, [ebp - 0x430]
push 0x412
push 0
push eax
mov dword [ebp - 0x49c], esi
call fcn.00424870
add esp, 0xc
mov dword [ebp - 0x4b0], 0x410
lea eax, [ebp - 0x4b0]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x4a8]
push eax
push 0
push 0x45ede8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
test eax, eax
jne 0x406568
mov eax, dword [ebp - 0x4a8]
cmp eax, 1
je 0x4064ab
cmp eax, 2
jne 0x406568
xor eax, eax
mov dword [ebp - 0x438], 0
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x434], 7
mov word [ebp - 0x448], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4064d1
sub ecx, edx
lea eax, [ebp - 0x430]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x448]
call fcn.00407590
lea eax, [ebp - 0x448]
push eax
call fcn.00406e80
mov dword [ebp - 0x4a4], edx
mov edx, dword [ebp - 0x434]
mov dword [ebp - 0x4a0], eax
cmp edx, 8
jb 0x40654b
mov ecx, dword [ebp - 0x448]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406541
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40672e
push edx
push ecx
call fcn.0042297a
add esp, 8
xor eax, eax
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 7
mov word [ebp - 0x448], ax
lea ecx, [ebp - 0x49c]
call fcn.00405dd0
mov eax, dword [ebp - 0x4a0]
mov dword [edi], eax
mov eax, dword [ebp - 0x4a4]
mov dword [edi + 4], eax
xor eax, eax
mov word [ebp - 0x494], ax
mov dword [ebp - 0x4a4], eax
lea eax, [ebp - 0x4a4]
push eax
push 1
push 0
push 0x45ed74
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x480], 7
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40660f
mov eax, dword [ebp - 0x4a4]
lea ecx, [ebp - 0x4a8]
push ecx
lea ecx, [ebp - 0x4a0]
mov dword [ebp - 0x49c], eax
push ecx
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 0x4a8], 4
push ecx
push 0
push str.SupplyID
push eax
call esi
mov esi, dword [ebp - 0x4a0]
lea ecx, [ebp - 0x49c]
call fcn.00405dd0
mov dword [edi + 0x10], esi
cmp dword [edi + 0x7c], 0
jle 0x406632
cmp dword [edi + 0x80], 0
jne 0x4066a3
mov eax, dword [edi + 0x80]
mov dword [ebp - 0x4c0], 0xffffffff
mov dword [ebp - 0x4bc], 0xffffffff
mov dword [ebp - 0x4b8], 0xffffffff
mov dword [ebp - 0x4b4], 0xffffffff
test eax, eax
je 0x406677
push eax
call fcn.004306d9
add esp, 4
mov dword [edi + 0x80], 0
push 0x10
mov dword [edi + 0x7c], 0
call fcn.00436cdd
add esp, 4
mov dword [edi + 0x80], eax
test eax, eax
je 0x4066a3
movups xmm0, xmmword [ebp - 0x4c0]
movups xmmword [eax], xmm0
mov dword [edi + 0x7c], 0x10
mov esi, 1
jmp 0x4066c2
push dword [0x48f300]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x48f300], 0
xor esi, esi
mov edx, dword [ebp - 0x464]
cmp edx, 0x10
jb 0x4066f8
mov ecx, dword [ebp - 0x478]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4066ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406733
push edx
push ecx
call fcn.0042297a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00422308
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
call fcn.004309e5
int3