Function at 0x41022cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x411bade8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x40], ecx
test eax, eax
jne 0x41022cf6
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret
push esi
push 0x208
mov dword [eax], 0
call fcn.4103eeb7
add esp, 4
mov esi, eax
push 0x104
push esi
xor edx, edx
push edi
mov word [esi], dx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41022d2c
cmp word [esi + eax*2], 0x2e
je 0x41022d2c
dec eax
jne 0x41022d22
xor ecx, ecx
mov word [esi + eax*2], cx
test eax, eax
je 0x41022d40
cmp word [esi + eax*2], 0x5c
je 0x41022d40
dec eax
jne 0x41022d36
push ebx
xor edx, edx
lea ebx, [esi + eax*2 + 2]
push 0x208
mov word [esi + eax*2], dx
mov dword [ebp - 0x58], ebx
call fcn.4103eeb7
push str.SOFTWAREThinPrint_
mov edi, eax
push 0x104
push edi
call fcn.411304cf
mov eax, dword [ebp - 0x40]
add esp, 0x10
test eax, eax
jne 0x41022d76
mov eax, ebx
push eax
push 0x104
push edi
call fcn.41130532
xor edx, edx
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x3c], edx
mov word [ebp - 0x10], ax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 0x44], edx
lea esp, [esp]
movzx ecx, word [eax + 0x41165138]
mov word [ebp + eax - 0x10], cx
add eax, 2
cmp cx, dx
jne 0x41022da0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x3c]
push ecx
push 1
push edx
push edi
push SysReAllocString
call ebx
test eax, eax
jne 0x41022e20
lea edx, [ebp - 0x48]
push edx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x40]
push ecx
push 0
push str.Lang
push edx
mov dword [ebp - 0x48], 0xa
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41022e05
mov eax, 1
cmp dword [ebp - 0x40], eax
jne 0x41022e05
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0
jne 0x41022f4c
lea ecx, [ebp - 0x3c]
push ecx
push 1
push 0
push str.SOFTWAREThinPrint_
push SysReAllocString
call ebx
test eax, eax
jne 0x41022e8b
lea edx, [ebp - 0x48]
push edx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x40]
push ecx
push 0
push str.Lang
push edx
mov dword [ebp - 0x48], 0xa
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41022e70
mov eax, 1
cmp dword [ebp - 0x40], eax
jne 0x41022e70
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0
jne 0x41022f4c
lea ecx, [ebp - 0x3c]
push ecx
push 1
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x41022eee
lea edx, [ebp - 0x48]
push edx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x40]
push ecx
push 0
push str.Lang
push edx
mov dword [ebp - 0x48], 0xa
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41022ed7
mov eax, 1
cmp dword [ebp - 0x40], eax
jne 0x41022ed7
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x44], 0
mov dword [ebp - 0x3c], 0
jne 0x41022f4c
lea ecx, [ebp - 0x3c]
push ecx
push 1
push 0
push str.SOFTWAREThinPrint_
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x41022f4c
lea edx, [ebp - 0x48]
push edx
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x40]
push ecx
xor ebx, ebx
push ebx
push str.Lang
push edx
mov dword [ebp - 0x48], 0xa
mov dword [ebp - 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41022f3f
mov eax, 1
cmp dword [ebp - 0x40], eax
jne 0x41022f3f
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x3c], ebx
push edi
call fcn.4103eec2
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.41022a60
add esp, 8
cmp dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
je 0x41022f7f
lea edx, [ebp - 0x10]
push 0x411584dc
push edx
call fcn.4112e40c
add esp, 8
test eax, eax
jne 0x41022fd6
xor eax, eax
movzx ecx, word [eax + 0x41165138]
mov word [ebp + eax - 0x10], cx
add eax, 2
test cx, cx
jne 0x41022f81
mov edi, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x58]
push edi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x10]
push ecx
push ebx
push esi
call fcn.41022b50
add esp, 0x14
test eax, eax
jne 0x4102309b
jmp 0x41022fc0
movzx ecx, word [eax + 0x41165124]
mov word [ebp + eax - 0x10], cx
add eax, 2
test cx, cx
jne 0x41022fc0
jmp 0x41022fdc
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x50]
lea edx, [ebp - 0x10]
push 0x41165124
push edx
call fcn.4112e40c
add esp, 8
test eax, eax
jne 0x41023069
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.41022c50
add esp, 8
test eax, eax
je 0x410230ba
push edi
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x38]
push edx
push ebx
push esi
call fcn.41022b50
add esp, 0x14
test eax, eax
jne 0x4102309b
lea eax, [ebp - 0x38]
push 1
push eax
call fcn.41022c50
add esp, 8
test eax, eax
je 0x410230ba
push edi
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x38]
push edx
push ebx
push esi
call fcn.41022b50
add esp, 0x14
test eax, eax
je 0x410230ba
push esi
call fcn.4103eec2
add esp, 4
pop ebx
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x44], 0
je 0x410230ba
lea eax, [ebp - 0x10]
push 0x411584dc
push eax
call fcn.4112e40c
add esp, 8
test eax, eax
je 0x410230ba
push edi
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x10]
push edx
push ebx
push esi
call fcn.41022b50
add esp, 0x14
test eax, eax
je 0x410230ba
push esi
call fcn.4103eec2
add esp, 4
pop ebx
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x4c]
push eax
push 0x4116511c
push ebx
push esi
call fcn.41022b50
add esp, 0x14
push esi
test eax, eax
jne 0x4102309c
mov ecx, dword [ebp - 0x54]
mov dword [edi], ecx
call fcn.4103eec2
mov ecx, dword [ebp - 4]
add esp, 4
pop ebx
pop esi
xor ecx, ebp
xor eax, eax
pop edi
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret