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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x440034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x24c]
push ecx
push 0x2001f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionczhandle
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x258], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4021dc
lea edx, [ebp - 0x258]
push edx
mov edx, dword [ebp - 0x24c]
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x260]
push ecx
push 0
push str.bind_already
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4021ee
cmp byte [0x440452], al
je 0x4021dc
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x242]
movzx edx, word [ebp - 0x246]
movzx eax, word [ebp - 0x248]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push 0x43dfa8
push ecx
call edi
lea edx, [ebp - 0x25c]
push edx
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x130]
push 0x43e154
push edx
call dword [sym.imp.MSVCR100.dll_sscanf]
movzx eax, word [ebp - 0x242]
movzx ecx, word [ebp - 0x246]
mov edx, dword [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x254]
push ecx
movzx ecx, word [ebp - 0x248]
push edx
mov edx, dword [ebp - 0x250]
call fcn.00401c30
push 0x103
mov esi, eax
lea eax, [ebp - 0x237]
push 0
push eax
mov byte [ebp - 0x238], 0
call sub.MSVCR100.dll_memset
add esp, 0x40
push esi
lea ecx, [ebp - 0x238]
push 0x43e164
push ecx
call edi
add esp, 0xc
cmp esi, dword [0x440078]
jl 0x4021cf
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x24c]
add eax, eax
add eax, eax
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push str.bind_already
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x24c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004343fa
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x248]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0x242]
movzx eax, word [ebp - 0x246]
movzx ecx, word [ebp - 0x248]
push edx
push eax
push ecx
lea edx, [ebp - 0x24]
push 0x43dfa8
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x24c]
add eax, eax
add eax, eax
push eax
lea ecx, [ebp - 0x24]
push ecx
push 1
push 0
push str.bind_already
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004343fa
mov esp, ebp
pop ebp
ret