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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100adc4d
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x100da4b0]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push esi
push edi
mov eax, dword [0x100da4b0]
xor eax, esp
push eax
lea eax, [esp + 0x678]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x100ca89c
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1004035e
push 0x100ca8ac
push edi
call esi
push 0x100ca8b8
push edi
mov dword [0x100de94c], eax
call esi
push 0x100ca8d4
push edi
mov dword [0x100de968], eax
call esi
push 0x100ca8e4
push edi
mov dword [0x100de964], eax
call esi
push 0x100ca8f4
push edi
mov dword [0x100de960], eax
call esi
push 0x100ca904
push edi
mov dword [0x100de95c], eax
call esi
push 0x100ca914
push edi
mov dword [0x100de958], eax
call esi
push 0x100ca924
push edi
mov dword [0x100de954], eax
call esi
push 0x100ca934
push edi
mov dword [0x100de950], eax
call esi
push 0x100ca950
push edi
mov dword [0x100de8f8], eax
call esi
push 0x100ca96c
push edi
mov dword [0x100de8f0], eax
call esi
push 0x100ca984
push edi
mov dword [0x100de948], eax
call esi
push 0x100ca994
push edi
mov dword [0x100de908], eax
call esi
push 0x100ca9ac
push edi
mov dword [0x100de904], eax
call esi
push 0x100ca9c4
push edi
mov dword [0x100de900], eax
call esi
push 0x100ca9d8
push edi
mov dword [0x100de8fc], eax
call esi
mov dword [0x100de8f4], eax
cmp dword [0x100de968], 0
je 0x1004039d
cmp dword [0x100de964], 0
je 0x1004039d
cmp dword [0x100de960], 0
je 0x1004039d
cmp dword [0x100de95c], 0
je 0x1004039d
cmp dword [0x100de958], 0
je 0x1004039d
cmp dword [0x100de954], 0
je 0x1004039d
cmp dword [0x100de950], 0
jne 0x100403a2
call fcn.100407e2
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x100ca9f4
call edi
mov dword [0x100de914], eax
test eax, eax
je 0x1004048f
push 0x100caa00
push eax
call esi
push 0x100caa0c
push dword [0x100de914]
mov dword [0x100de944], eax
call esi
push 0x100caa1c
push dword [0x100de914]
mov dword [0x100de940], eax
call esi
push 0x100caa2c
push dword [0x100de914]
mov dword [0x100de93c], eax
call esi
push 0x100caa3c
push dword [0x100de914]
mov dword [0x100de938], eax
call esi
push 0x100caa4c
push dword [0x100de914]
mov dword [0x100de934], eax
call esi
push 0x100caa64
push dword [0x100de914]
mov dword [0x100de930], eax
call esi
push 0x100caa70
push dword [0x100de914]
mov dword [0x100de92c], eax
call esi
push 0x100caa7c
push dword [0x100de914]
mov dword [0x100de928], eax
call esi
push 0x100caa98
push dword [0x100de914]
mov dword [0x100de924], eax
call esi
push 0x100caaac
push dword [0x100de914]
mov dword [0x100de920], eax
call esi
push 0x100caabc
push dword [0x100de914]
mov dword [0x100de91c], eax
call esi
mov dword [0x100de8d0], eax
cmp dword [0x100de944], 0
je 0x100404f2
cmp dword [0x100de940], 0
je 0x100404f2
cmp dword [0x100de93c], 0
je 0x100404f2
cmp dword [0x100de938], 0
je 0x100404f2
cmp dword [0x100de934], 0
je 0x100404f2
cmp dword [0x100de930], 0
je 0x100404f2
cmp dword [0x100de92c], 0
je 0x100404f2
cmp dword [0x100de928], 0
je 0x100404f2
cmp dword [0x100de924], 0
je 0x100404f2
cmp dword [0x100de920], 0
je 0x100404f2
cmp dword [0x100de91c], 0
jne 0x100404f7
call fcn.10040808
push 0x100caad0
call ebx
test eax, eax
je 0x10040511
push 0x100caadc
push eax
call esi
mov dword [0x100de918], eax
jmp 0x10040518
and dword [0x100de918], 0
push 0x100caaec
call edi
mov dword [0x100de910], eax
test eax, eax
je 0x10040547
push 0x100caaf8
push eax
call esi
push 0x100cab10
push dword [0x100de910]
mov dword [0x100de90c], eax
call esi
mov dword [0x100de8dc], eax
push 0x100cab24
call edi
mov dword [0x100de8ec], eax
test eax, eax
je 0x10040588
push 0x100cab34
push eax
call esi
push 0x100cab54
push dword [0x100de8ec]
mov dword [0x100de8e8], eax
call esi
push 0x100cab64
push dword [0x100de8ec]
mov dword [0x100de8e0], eax
call esi
mov dword [0x100de8e4], eax
push 0x100cab80
call edi
mov dword [0x100de8d8], eax
test eax, eax
je 0x100405a5
push 0x100cab90
push eax
call esi
mov dword [0x100de8d4], eax
push 0x100caba8
mov byte [esp + 0x160], 0
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x15c]
mov edi, 0x104
push edi
push ecx
push eax
call esi
lea eax, [esp + 0x15c]
push eax
lea ecx, [esp + 0x28]
call fcn.10006fbe
push 1
push 0xffffffffffffffff
lea eax, [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x688], ebx
lea ecx, [esp + 0x2c]
push eax
mov byte [esp + 0x1c], 0x5c
call fcn.1000399b
push eax
push ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x30]
call fcn.10003027
push eax
lea ecx, [esp + 0x28]
call fcn.10003002
push ebx
push 1
lea ecx, [esp + 0x44]
call fcn.100072c0
cmp dword [esp + 0x38], 0x10
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
call fcn.100407a2
push edi
lea eax, [esp + 0x58]
mov byte [esp + 0x58], bl
push eax
push ebx
call esi
lea esi, [edi - 4]
push esi
lea eax, [esp + 0x368]
push eax
push esi
lea eax, [esp + 0x470]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x70]
push ebx
push eax
call fcn.1008d925
add esp, 0x24
lea eax, [esp + 0x364]
push eax
lea eax, [esp + 0x468]
push eax
push ebx
push ebx
lea eax, [esp + 0x574]
push edi
push eax
call fcn.1008db31
push 0x100cabb0
lea eax, [esp + 0x280]
push esi
push eax
call fcn.1008bb66
add esp, 0x24
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
lea eax, [esp + 0x270]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10040755
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], ebx
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x20], 4
push eax
push ebx
push 0x100cabc4
push dword [esp + 0x28]
mov dword [esp + 0x38], ebx
call esi
mov ecx, dword [0x100db5d0]
test eax, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
cmove ecx, dword [esp + 0x20]
mov edi, 0x100cabd4
push eax
push ebx
lea eax, [esp + 0x24]
mov dword [0x100db5d0], ecx
push eax
push ebx
push edi
push dword [esp + 0x28]
call esi
test eax, eax
jne 0x1004074b
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x104
push eax
push 0x100dffd8
lea eax, [esp + 0x24]
push eax
push ebx
push edi
push dword [esp + 0x28]
call esi
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x10040b32
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 1
mov dword [0x100de96c], eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
push 1
lea ecx, [esp + 0x2c]
call fcn.100072c0
mov eax, 0x100e09e2
mov ecx, dword [esp + 0x678]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x660]
xor ecx, esp
call fcn.1008a221
mov esp, ebp
pop ebp
ret