Function at 0x40a3c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470afb
mov eax, dword fs:[0]
push eax
sub esp, 0xa6c
mov eax, dword [0x4954f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa3c], ecx
push 0x20a
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.0044b130
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push 0x200
push eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0xa38]
push eax
call fcn.0044b130
push 0x200
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0044b130
push 0x200
lea eax, [ebp - 0x838]
push 0
push eax
call fcn.0044b130
push 0x100
lea eax, [ebp - 0x838]
push eax
push 0x100
lea eax, [ebp - 0x218]
push eax
push 0x100
lea eax, [ebp - 0xa38]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00453b26
add esp, 0x48
mov dword [ebp - 0xa44], 0
xor eax, eax
mov dword [ebp - 0xa40], 7
lea ecx, [ebp - 0x218]
mov word [ebp - 0xa54], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a4c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xa54]
call fcn.00407ef0
mov dword [ebp - 4], 0
lea edx, [ebp - 0xa54]
cmp dword [ebp - 0xa40], 8
mov esi, dword [ebp - 0xa44]
cmovae edx, dword [ebp - 0xa54]
test esi, esi
je 0x40a5e7
lea eax, [esi - 1]
or ecx, 0xffffffff
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x56
lea eax, [edx + ecx*2]
je 0x40a531
cmp eax, edx
je 0x40a5e7
sub eax, 2
cmp word [eax], 0x56
jne 0x40a520
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x40a5e7
lea ecx, [eax + 1]
mov dword [ebp - 0xa64], 0
xor eax, eax
mov dword [ebp - 0xa60], 7
mov word [ebp - 0xa74], ax
cmp esi, ecx
jb 0x40a75e
mov eax, esi
sub eax, ecx
cmp eax, esi
cmovb esi, eax
cmp dword [ebp - 0xa40], 8
lea eax, [ebp - 0xa54]
cmovae eax, dword [ebp - 0xa54]
push esi
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0xa74]
call fcn.00407ef0
lea eax, [ebp - 0xa74]
push eax
lea ecx, [ebp - 0xa54]
call fcn.00406740
mov edx, dword [ebp - 0xa60]
cmp edx, 8
jb 0x40a5f9
mov ecx, dword [ebp - 0xa74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a5db
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a763
push edx
push ecx
call fcn.00444954
add esp, 8
jmp 0x40a5f9
push 6
push str.119999
lea ecx, [ebp - 0xa54]
call fcn.00407ef0
mov ecx, dword [ebp - 0xa3c]
lea eax, [ebp - 0xa54]
add ecx, 0x10
cmp ecx, eax
je 0x40a626
cmp dword [ebp - 0xa40], 8
push dword [ebp - 0xa44]
cmovae eax, dword [ebp - 0xa54]
push eax
call fcn.00407ef0
lea eax, [ebp - 0xa5c]
mov dword [ebp - 0xa5c], 0
push eax
push str.SoftwareXXPic
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x40a708
push 0x20a
push eax
lea eax, [ebp - 0x638]
mov dword [ebp - 0xa58], 1
push eax
call fcn.0044b130
add esp, 0xc
mov dword [ebp - 0xa3c], 0x20a
lea eax, [ebp - 0xa3c]
push eax
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0xa58]
push eax
push 0
push str.ChnID
push dword [ebp - 0xa5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x638]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a6b0
sub ecx, edx
sar ecx, 1
cmp ecx, 4
jae 0x40a6fc
mov eax, dword [ebp - 0xa44]
lea ecx, [ebp - 0xa54]
cmp dword [ebp - 0xa40], 8
cmovae ecx, dword [ebp - 0xa54]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.ChnID
push dword [ebp - 0xa5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xa5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0xa40]
cmp edx, 8
jb 0x40a744
mov ecx, dword [ebp - 0xa54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a73a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a768
push edx
push ecx
call fcn.00444954
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444204
mov esp, ebp
pop ebp
ret
call fcn.00408c70
call fcn.004538a3
call fcn.004538a3
int3