Function at 0x403520
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x48382b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x22c
push ebp
push esi
mov esi, ecx
push str.__CConfig::Load___n
mov ecx, dword [esi + 4]
add ecx, 0x18fb50
call fcn.00445d20
mov ecx, dword [esi + 4]
add ecx, 0x18fb50
call fcn.00445cf0
mov ecx, esi
call fcn.00403470
mov eax, dword [esi + 8]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 8], ebp
jne 0x403588
lea eax, [esp + 8]
push str.BaseTgameconf.ini
push eax
call fcn.00439930
add esp, 8
jmp 0x4035a5
lea ecx, [esp + 8]
push eax
push ecx
call fcn.00439930
lea edx, [esp + 0x10]
push str.gameconf.ini
push edx
call fcn.00439b10
add esp, 0x10
mov eax, dword [esp + 8]
mov ecx, dword [esi + 4]
push eax
push str.___OpenFile
add ecx, 0x18fb50
call fcn.00445df0
lea ecx, [esp + 0x18]
call fcn.00445960
mov ecx, dword [esp + 8]
mov dword [esp + 0x23c], ebp
push ecx
lea ecx, [esp + 0x1c]
call fcn.004459b0
test al, al
jne 0x40360a
mov ecx, dword [esi + 4]
push str.___ERROR_OpenFile_n
add ecx, 0x18fb50
call fcn.00445d20
mov ecx, dword [esi + 4]
add ecx, 0x18fb50
call fcn.00445d00
push str.____return_on_ERROR_n
jmp 0x403988
lea edx, [esp + 8]
push edx
call fcn.00439990
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00445ab0
test al, al
je 0x40389f
push ebx
mov ebx, 1
lea ecx, [esp + 0x1c]
call fcn.00445ba0
push eax
push 0x48b3f0
call fcn.004398a0
add esp, 8
test al, al
je 0x403678
lea ecx, [esp + 0x1c]
call fcn.00445ab0
lea ecx, [esp + 0x1c]
call fcn.00445bc0
mov ecx, dword [esi + 4]
mov word [esi + 0x58], ax
and eax, 0xffff
add ecx, 0x18fb50
push eax
push str.___Lang
call fcn.00445f00
lea ecx, [esp + 0x1c]
call fcn.00445ba0
push eax
push 0x48b3d8
call fcn.004398a0
add esp, 8
test al, al
je 0x4036cb
lea ecx, [esp + 0x1c]
call fcn.00445ab0
lea ecx, [esp + 0x1c]
call fcn.00445bc0
test eax, eax
je 0x4036ae
mov byte [esi + 0x67], bl
jmp 0x4036b2
mov byte [esi + 0x67], 0
mov ecx, dword [esi + 4]
xor eax, eax
mov al, byte [esi + 0x67]
add ecx, 0x18fb50
push eax
push str.___FullScreen
call fcn.00445f00
lea ecx, [esp + 0x1c]
call fcn.00445ba0
push eax
push 0x48b3bc
call fcn.004398a0
add esp, 8
test al, al
je 0x403715
lea ecx, [esp + 0x1c]
call fcn.00445ab0
lea ecx, [esp + 0x1c]
call fcn.00445bc0
mov ecx, dword [esi + 4]
mov word [esi + 0x54], ax
and eax, 0xffff
add ecx, 0x18fb50
push eax
push str.___Sound
call fcn.00445f00
lea ecx, [esp + 0x1c]
call fcn.00445ba0
push eax
push 0x48b3a4
call fcn.004398a0
add esp, 8
test al, al
je 0x40375f
lea ecx, [esp + 0x1c]
call fcn.00445ab0
lea ecx, [esp + 0x1c]
call fcn.00445bc0
mov ecx, dword [esi + 4]
mov word [esi + 0x52], ax
and eax, 0xffff
add ecx, 0x18fb50
push eax
push str.___Music
call fcn.00445f00
lea ecx, [esp + 0x1c]
call fcn.00445ba0
push eax
push str.Resolution
call fcn.004398a0
add esp, 8
test al, al
je 0x403805
lea ecx, [esp + 0x1c]
call fcn.00445ab0
lea ecx, [esp + 0x1c]
call fcn.00445ba0
push eax
push str.800x600
call fcn.004398a0
add esp, 8
test al, al
je 0x4037c7
mov ecx, dword [esi + 4]
push str.___Resolution_800x600_n
add ecx, 0x18fb50
mov word [esi + 0x68], 0x320
mov word [esi + 0x6a], 0x258
mov word [esi + 0x4c], 2
call fcn.00445d20
lea ecx, [esp + 0x1c]
call fcn.00445ba0
push eax
push str.1024x768
call fcn.004398a0
add esp, 8
test al, al
je 0x403805
mov ecx, dword [esi + 4]
push str.___Resolution_1024x768_n
add ecx, 0x18fb50
mov word [esi + 0x68], 0x400
mov word [esi + 0x6a], 0x300
mov word [esi + 0x4c], bx
call fcn.00445d20
lea ecx, [esp + 0x1c]
call fcn.00445ba0
push eax
push str.Depth
call fcn.004398a0
add esp, 8
test al, al
je 0x40388d
lea ecx, [esp + 0x1c]
call fcn.00445ab0
lea ecx, [esp + 0x1c]
call fcn.00445ba0
push eax
push str.32bit
call fcn.004398a0
add esp, 8
test al, al
je 0x40385b
mov ecx, dword [esi + 4]
push str.___Depth_32bit_n
add ecx, 0x18fb50
mov word [esi + 0x4e], bp
call fcn.00445d20
lea ecx, [esp + 0x1c]
call fcn.00445ba0
push eax
push str.16bit
call fcn.004398a0
add esp, 8
test al, al
je 0x40388d
mov ecx, dword [esi + 4]
push str.___Depth_16bit_n
add ecx, 0x18fb50
mov word [esi + 0x4e], bx
call fcn.00445d20
lea ecx, [esp + 0x1c]
call fcn.00445ab0
test al, al
jne 0x40362e
pop ebx
lea ecx, [esp + 0x18]
call fcn.00445bd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0x2000
push ecx
push str.SoftwareEnkordArmada_Tank
push 0x80000001
mov dword [esp + 0x18], ebp
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
cmp eax, ebp
jne 0x403927
mov edx, dword [esp + 0x10]
push edi
push edx
call fcn.004799d9
mov edx, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], eax
push ecx
push eax
push ebp
push ebp
push str.Installer_Language
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov edi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp edi, ebp
pop edi
jne 0x40391a
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00439c00
add esp, 4
mov word [esi + 0x58], ax
lea edx, [esp + 0xc]
push edx
call fcn.00439990
add esp, 4
mov ecx, dword [esi + 4]
xor eax, eax
mov ax, word [esi + 0x4c]
add ecx, 0x18fb50
push eax
push str.___Resolution
call fcn.00445f00
xor ecx, ecx
mov cx, word [esi + 0x4e]
push ecx
mov ecx, dword [esi + 4]
push str.___Depth
add ecx, 0x18fb50
call fcn.00445f00
mov ecx, dword [esi + 4]
xor edx, edx
mov dx, word [esi + 0x50]
add ecx, 0x18fb50
push edx
push str.___Quality
call fcn.00445f00
mov ecx, dword [esi + 4]
add ecx, 0x18fb50
call fcn.00445d00
push str.____n
mov ecx, dword [esi + 4]
add ecx, 0x18fb50
call fcn.00445d20
lea ecx, [esp + 0x18]
mov dword [esp + 0x23c], 0xffffffff
call fcn.00445990
mov ecx, dword [esp + 0x234]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x238
ret