Function at 0x402400
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4112b8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x41b014]
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 esi, ecx
mov dword [ebp - 0x44], esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], esi
cmp dword [0x41b814], 8
mov eax, 0x41b800
push ecx
cmovae eax, dword [0x41b800]
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x402479
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x40268c
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xorps xmm0, xmm0
mov ebx, dword [ebp - 0x44]
movlpd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0
push str.Application_File
push ebx
mov dword [ebp - 0x40], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4024e2
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x40268c
push ebx
call edi
jmp 0x40268c
mov eax, dword [ebp - 0x40]
xorps xmm0, xmm0
push ecx
shr eax, 1
lea ecx, [ebp - 0x1c]
push eax
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
call fcn.00403270
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x1c]
push eax
push edi
push 0
push 0
push str.Application_File
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x402578
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], al
test edi, edi
je 0x40256c
mov eax, dword [ebp - 0x14]
sub eax, edi
sar eax, 1
lea ecx, [eax + eax]
mov eax, edi
cmp ecx, 0x1000
jb 0x402562
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026aa
push ecx
push edi
call fcn.00404688
add esp, 8
mov dword [ebp - 4], 3
jmp 0x402681
xor eax, eax
mov dword [ebp - 0x20], 7
xor ecx, ecx
mov word [ebp - 0x34], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], ecx
cmp edi, eax
je 0x4025a2
sub eax, edi
lea ecx, [ebp - 0x34]
sar eax, 1
push eax
push edi
call fcn.00403540
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 4
lea edx, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
cmovae edx, dword [ebp - 0x34]
test ecx, ecx
je 0x4025e3
lea eax, [ecx - 1]
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea eax, [edx + ecx*2]
je 0x4025dd
nop word [eax + eax]
cmp eax, edx
je 0x4025e3
sub eax, 2
cmp word [eax], 0x5c
jne 0x4025d0
sub eax, edx
sar eax, 1
jmp 0x4025e6
or eax, 0xffffffff
inc eax
lea ecx, [ebp - 0x34]
push eax
push 0
push esi
call fcn.004033b0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x20]
cmp edx, 8
jb 0x402631
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402627
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026af
push edx
push ecx
call fcn.00404688
add esp, 8
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov byte [ebp - 4], al
test edi, edi
je 0x40267a
mov eax, dword [ebp - 0x14]
sub eax, edi
sar eax, 1
lea ecx, [eax + eax]
mov eax, edi
cmp ecx, 0x1000
jb 0x402670
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4026b4
push ecx
push edi
call fcn.00404688
add esp, 8
mov dword [ebp - 4], 5
test ebx, ebx
je 0x40268c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.00404677
mov esp, ebp
pop ebp
ret
call fcn.00407fd9
call fcn.00407fd9
call fcn.00407fd9
int3