Function at 0x411566
Capabilities:
Get geographical location
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x233c
call fcn.00422bb0
push edi
mov dword [ebp - 0x2334], ecx
mov dword [ebp - 0x104], 0x103
mov byte [ebp - 0x100], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.Software_
lea eax, [ebp - 0x100]
push eax
call fcn.00422880
add esp, 8
push 0x45b330
lea ecx, [ebp - 0x100]
push ecx
call fcn.00422890
add esp, 8
push 0x45b33c
lea edx, [ebp - 0x100]
push edx
call fcn.00422890
add esp, 8
push str.CurrentVersion
lea eax, [ebp - 0x100]
push eax
call fcn.00422890
add esp, 8
mov ecx, dword [ebp - 0x2334]
add ecx, 0x104
call fcn.00412670
lea ecx, [ebp - 0x108]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x100]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411a95
mov dword [ebp - 0x2320], 0
mov dword [ebp - 0x2118], 0x200
mov dword [ebp - 0x2114], 3
mov dword [ebp - 0x2114], 3
mov dword [ebp - 0x2118], 0x2000
lea eax, [ebp - 0x2118]
push eax
lea ecx, [ebp - 0x210c]
push ecx
lea edx, [ebp - 0x2114]
push edx
push 0
push str.CountryCodesBB
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x2110], eax
cmp dword [ebp - 0x2110], 0
jne 0x41169c
cmp dword [ebp - 0x2118], 0x2000
jbe 0x4116a1
jmp 0x411a95
mov ecx, 1
test ecx, ecx
je 0x411a88
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x2118]
push edx
lea eax, [ebp - 0x231c]
push eax
mov ecx, dword [ebp - 0x2320]
push ecx
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x104], eax
cmp dword [ebp - 0x104], 0x103
je 0x4116f3
cmp dword [ebp - 0x104], 0
je 0x4116f8
jmp 0x411a88
lea eax, [ebp - 0x231c]
push eax
call fcn.00422ce0
add esp, 4
mov dword [ebp - 0x232c], eax
mov byte [ebp - 0x2330], 1
mov dword [ebp - 0x2328], 0
jmp 0x41172f
mov ecx, dword [ebp - 0x2328]
add ecx, 1
mov dword [ebp - 0x2328], ecx
mov edx, dword [ebp - 0x2328]
cmp edx, dword [ebp - 0x232c]
jge 0x411761
mov eax, dword [ebp - 0x2328]
movsx ecx, byte [ebp + eax - 0x231c]
push ecx
call fcn.00422e7a
add esp, 4
test eax, eax
jne 0x41175f
mov byte [ebp - 0x2330], 0
jmp 0x411720
mov edx, dword [ebp - 0x2330]
and edx, 0xff
test edx, edx
jne 0x411776
jmp 0x4116a1
lea eax, [ebp - 0x231c]
push eax
call fcn.00422e6f
add esp, 4
mov dword [ebp - 0x211c], eax
cmp dword [ebp - 0x211c], 0x3e7
jle 0x41179c
jmp 0x4116a1
mov ecx, dword [ebp - 0x211c]
push ecx
lea edx, [ebp - 0x210c]
push edx
mov ecx, dword [ebp - 0x2334]
call fcn.00411f75
test eax, eax
jne 0x4117be
jmp 0x4116a1
lea eax, [ebp - 0x2324]
push eax
push 3
push 0
lea ecx, [ebp - 0x231c]
push ecx
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4117e6
jmp 0x4116a1
mov dword [ebp - 0x2118], 0x200
mov dword [ebp - 0x2114], 1
lea eax, [ebp - 0x2118]
push eax
lea ecx, [ebp - 0x231c]
push ecx
lea edx, [ebp - 0x2114]
push edx
push 0
push str.Country
mov eax, dword [ebp - 0x2324]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x2110], eax
cmp dword [ebp - 0x2110], 0
jne 0x41183e
cmp dword [ebp - 0x2118], 0x200
jbe 0x411850
mov ecx, dword [ebp - 0x2324]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4116a1
mov edx, dword [ebp - 0x2334]
mov eax, dword [edx + 0x1ef]
mov dword [ebp - 0x2338], eax
cmp dword [ebp - 0x2338], 4
ja case.0x411875.2
mov ecx, dword [ebp - 0x2338]
jmp dword [ecx*4 + 0x411a9a]
lea edx, [ebp - 0x231c]
push edx
mov ecx, dword [ebp - 0x2334]
add ecx, 0x104
call fcn.0040a190
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
je 0x4118cb
cmp dword [ebp - 0x10c], 0xfffffffe
je 0x4118cb
mov eax, dword [ebp - 0x211c]
push eax
mov ecx, dword [ebp - 0x10c]
push ecx
mov ecx, dword [ebp - 0x2334]
add ecx, 0x104
call fcn.00412610
jmp 0x411a67
mov edx, dword [ebp - 0x211c]
mov dword [ebp - 0x233c], edx
cmp dword [ebp - 0x233c], 0x56
jg 0x411923
cmp dword [ebp - 0x233c], 0x56
je case.0x4119c0.0
mov eax, dword [ebp - 0x233c]
sub eax, 1
mov dword [ebp - 0x233c], eax
cmp dword [ebp - 0x233c], 0x50
ja case.0x4119c0.1
mov edx, dword [ebp - 0x233c]
xor ecx, ecx
mov cl, byte [edx + 0x411ab6]
jmp dword [ecx*4 + 0x411aae]
cmp dword [ebp - 0x233c], 0x355
jg 0x411998
cmp dword [ebp - 0x233c], 0x354
jge case.0x4119c0.0
cmp dword [ebp - 0x233c], 0x1f7
jg 0x41197e
cmp dword [ebp - 0x233c], 0x1f7
je case.0x4119c0.0
cmp dword [ebp - 0x233c], 0x5b
jl case.0x4119c0.1
cmp dword [ebp - 0x233c], 0x5c
jle case.0x4119c0.0
cmp dword [ebp - 0x233c], 0x1a5
je case.0x4119c0.0
jmp case.0x4119c0.1
cmp dword [ebp - 0x233c], 0x251
je case.0x4119c0.0
cmp dword [ebp - 0x233c], 0x29f
je case.0x4119c0.0
jmp case.0x4119c0.1
mov eax, dword [ebp - 0x233c]
sub eax, 0x370
mov dword [ebp - 0x233c], eax
cmp dword [ebp - 0x233c], 0x5b
ja case.0x4119c0.1
mov edx, dword [ebp - 0x233c]
xor ecx, ecx
mov cl, byte [edx + 0x411b0f]
jmp dword [ecx*4 + 0x411b07]
lea eax, [ebp - 0x231c]
push eax
mov ecx, dword [ebp - 0x2334]
add ecx, 0x104
call fcn.0040a190
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
je case.0x4119c0.1
cmp dword [ebp - 0x10c], 0xfffffffe
je case.0x4119c0.1
mov ecx, dword [ebp - 0x211c]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
mov ecx, dword [ebp - 0x2334]
add ecx, 0x104
call fcn.00412610
jmp 0x411a67
lea eax, [ebp - 0x231c]
push eax
mov ecx, dword [ebp - 0x2334]
add ecx, 0x104
call fcn.0040a190
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xffffffff
je 0x411a67
cmp dword [ebp - 0x10c], 0xfffffffe
je 0x411a67
mov ecx, dword [ebp - 0x211c]
push ecx
mov edx, dword [ebp - 0x10c]
push edx
mov ecx, dword [ebp - 0x2334]
add ecx, 0x104
call fcn.00412610
mov eax, dword [ebp - 0x2324]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2320]
add ecx, 1
mov dword [ebp - 0x2320], ecx
jmp 0x4116a1
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov esp, ebp
pop ebp
ret