Function at 0x408dc0
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c303a
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x515bb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28c], ecx
mov ecx, dword [ebp + 8]
call fcn.0040188e
mov ecx, dword [ebp + 0xc]
call fcn.00402d0b
push 0x4df108
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
jne 0x408e22
xor eax, eax
jmp 0x4091fe
push 0x4df118
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x274], eax
push 0x4df130
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x270], eax
push 0x4df148
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x260], eax
push 0x4df16c
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x25c], eax
push 0x4df18c
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x274], 0
je 0x408ec7
cmp dword [ebp - 0x25c], 0
je 0x408ec7
cmp dword [ebp - 0x26c], 0
je 0x408ec7
cmp dword [ebp - 0x270], 0
je 0x408ec7
cmp dword [ebp - 0x260], 0
jne 0x408ee3
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4091fe
mov eax, dword [0x4f2648]
mov dword [ebp - 0x220], eax
mov ecx, dword [0x4f264c]
mov dword [ebp - 0x21c], ecx
mov edx, dword [0x4f2650]
mov dword [ebp - 0x218], edx
mov eax, dword [0x4f2654]
mov dword [ebp - 0x214], eax
push 0x12
push 0
push 0
lea ecx, [ebp - 0x220]
push ecx
call dword [ebp - 0x270]
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0xffffffff
jne 0x408f60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x290], eax
mov edx, dword [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4091fe
mov dword [ebp - 0x250], 1
mov dword [ebp - 0x248], 0
cmp dword [ebp - 0x250], 0
je 0x4091df
mov dword [ebp - 0x23c], 0x1c
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x248]
push edx
mov eax, dword [ebp - 0x244]
push eax
call dword [ebp - 0x26c]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
je 0x4091cb
mov dword [ebp - 0x278], 0
push 1
push 1
push 0
push 1
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x244]
push edx
call dword [ebp - 0x274]
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x4090f3
mov dword [ebp - 0x280], 0x100
mov dword [ebp - 0x27c], 0
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x27c]
push edx
push 0
push 0x4df1a4
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4090e6
cmp dword [ebp - 0x27c], 1
jne 0x4090e6
lea ecx, [ebp - 0x110]
push ecx
call sub.MSVCR110.dll_strlen
add esp, 4
mov dword [ebp - 0x284], eax
cmp dword [ebp - 0x284], 3
jbe 0x4090e6
push 3
push 0x4df1b0
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.MSVCR110.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x4090e6
push 0
mov eax, 1
imul eax, eax, 3
lea ecx, [ebp + eax - 0x110]
push ecx
mov ecx, dword [ebp - 0x28c]
call fcn.00401398
test eax, eax
je 0x4090e6
mov edx, 1
imul edx, edx, 3
lea eax, [ebp + edx - 0x110]
push eax
call dword [sym.imp.MSVCR110.dll_atoi]
add esp, 4
mov dword [ebp - 0x294], eax
mov ecx, dword [ebp - 0x294]
mov dword [ebp - 0x288], ecx
lea edx, [ebp - 0x288]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401244
mov dword [ebp - 0x278], 1
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x278], 0
je 0x4091cb
mov dword [ebp - 0x264], 0x100
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x264]
push edx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x254]
push ecx
push 0
lea edx, [ebp - 0x23c]
push edx
mov eax, dword [ebp - 0x244]
push eax
call dword [ebp - 0x260]
test eax, eax
je 0x409191
cmp dword [ebp - 0x254], 1
jne 0x409191
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x268]
call dword [sym.imp.mfc110.dll_Ordinal_310]
mov dword [ebp - 4], 0
lea edx, [ebp - 0x268]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004013f2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x268]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
jmp 0x4091cb
push 0x4dee2e
lea ecx, [ebp - 0x258]
call dword [sym.imp.mfc110.dll_Ordinal_310]
mov dword [ebp - 4], 1
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004013f2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call dword [sym.imp.mfc110.dll_Ordinal_1038]
mov ecx, dword [ebp - 0x248]
add ecx, 1
mov dword [ebp - 0x248], ecx
jmp 0x408f74
mov edx, dword [ebp - 0x244]
push edx
call dword [ebp - 0x25c]
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b5ffc
mov esp, ebp
pop ebp
ret 8