Function at 0x439f20
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x5820dc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54c
mov eax, dword [0xb0961c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x568]
push edi
xor ebp, ebp
push 0x59f3dc
push esi
mov dword [esp + 0x44], eax
mov dword [0xb0961c], ebp
call fcn.00536250
mov edi, eax
add esp, 8
cmp edi, ebp
mov dword [esp + 0x24], edi
jne 0x439f82
push esi
push str.Couldnt_open_texture_file__s_n
call fcn.00405b60
add esp, 8
jmp 0x43a683
push edi
push 1
lea ecx, [esp + 0x60]
push 4
push ecx
call fcn.005362d0
push edi
push 1
lea edx, [esp + 0x40]
push 4
push edx
call fcn.005362d0
mov eax, dword [0xa6d920]
add esp, 0x20
inc eax
cmp eax, 0x1e
mov dword [0xa6d920], eax
jbe 0x43a047
mov eax, dword [0x5a1d20]
mov dword [0xa6d920], ebp
xor esi, esi
mov cl, byte [eax]
cmp cl, 0xff
je 0x439fe0
lea edx, [esp + 0x5c]
sub edx, eax
not cl
mov byte [edx + eax], cl
mov cl, byte [eax + 1]
inc esi
inc eax
cmp cl, 0xff
jne 0x439fd1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x5c]
push eax
push 1
push ebp
push ecx
push reloc.WS2_32.dll_bind
mov byte [esp + esi + 0x70], 0
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43a047
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x63], al
push str.SmoTheOneWasHere
push ebp
lea eax, [esp + 0x68]
push ebp
push eax
push ecx
mov byte [esp + 0x76], 0x79
mov dword [esp + 0x38], 0x11
mov byte [esp + 0x75], 0x65
mov byte [esp + 0x74], 0x4b
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], ebp
cmp eax, ebp
jle 0x43a58b
mov eax, dword [0xb084b8]
xor esi, esi
cmp eax, esi
jne 0x43a088
mov eax, dword [str.Null_Pointer]
push eax
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov eax, dword [0xb084b8]
add esp, 0xc
cmp eax, esi
jne 0x43a088
call fcn.0052ff20
mov ecx, dword [0xb084b8]
push esi
push 1
push 0x18
call fcn.00533b80
mov dword [esp + 0x54], eax
cmp eax, esi
mov dword [esp + 0x564], esi
je 0x43a0b0
mov ecx, eax
call fcn.00445d80
mov esi, eax
mov edi, dword [esp + 0x24]
mov dword [esp + 0x564], 0xffffffff
push edi
push 1
push 4
push esi
call fcn.005362d0
mov eax, dword [esi]
add esp, 0x10
cmp eax, 0x3d6f1fa8
mov byte [esp + 0x13], 0
je 0x43a0e9
cmp eax, 0x61ad85e4
je 0x43a0e9
cmp eax, 0x23eef4e8
jne 0x43a0ee
mov byte [esp + 0x13], 1
push edi
push 1
lea ecx, [esp + 0x58]
push 4
push ecx
call fcn.005362d0
push edi
push 1
lea edx, [esp + 0x50]
push 4
push edx
call fcn.005362d0
mov ax, word [esp + 0x70]
push edi
mov word [esi + 4], ax
mov cx, word [esp + 0x5c]
mov dx, ax
mov ax, cx
mov word [esi + 6], cx
add dx, 3
add ax, 3
push 1
lea ecx, [esp + 0x6c]
and edx, 0xfffc
and eax, 0xfffc
push 4
push ecx
mov word [esi + 8], dx
mov word [esi + 0xa], ax
call fcn.005362d0
push edi
push 1
lea edx, [esp + 0x84]
push 4
push edx
call fcn.005362d0
add esp, 0x40
lea eax, [esp + 0x48]
push edi
push 1
push 4
push eax
call fcn.005362d0
push edi
push 1
lea ecx, [esp + 0x44]
push 4
push ecx
call fcn.005362d0
mov dl, byte [esp + 0x64]
add esp, 0x20
mov byte [esi + 0xc], dl
mov al, byte [esp + 0x4c]
mov byte [esi + 0xd], al
mov cl, byte [esp + 0x48]
mov byte [esi + 0xe], cl
mov dl, byte [esp + 0x2c]
mov byte [esi + 0xf], dl
mov al, byte [esp + 0x2c]
test al, al
jbe 0x43a1c8
cmp al, 1
je 0x43a1be
cmp al, 2
je 0x43a1be
cmp al, 5
jne 0x43a1f7
mov dword [esp + 0x1c], 0x35545844
jmp 0x43a1f7
mov dword [esp + 0x1c], 0x31545844
jmp 0x43a1f7
mov al, byte [esi + 0xd]
cmp al, 8
jne 0x43a1d9
mov dword [esp + 0x1c], 0x29
jmp 0x43a1f7
cmp al, 0x10
jne 0x43a1e7
mov dword [esp + 0x1c], 0x19
jmp 0x43a1f7
cmp al, 0x18
je 0x43a1f7
cmp al, 0x20
jne 0x43a1f7
mov dword [esp + 0x1c], 0x15
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x1b], 0
cmp eax, 0x29
jne 0x43a216
mov byte [esi + 0xd], 0x20
mov dword [esp + 0x1c], 0x15
mov byte [esp + 0x1b], 1
mov edi, dword [0xaab478]
lea ebx, [esi + 0x10]
push ebx
mov ebx, dword [esp + 0x20]
mov ebp, dword [edi]
xor edx, edx
mov dl, byte [esi + 0xc]
xor eax, eax
mov ax, word [esi + 6]
push 1
xor ecx, ecx
push ebx
mov cx, word [esi + 4]
push 0
push edx
push eax
push ecx
push edi
call dword [ebp + 0x50]
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x40]
push edi
push 1
push 4
push eax
call fcn.005362d0
mov eax, dword [esp + 0x50]
add esp, 0x10
test eax, eax
jbe 0x43a275
push edi
push 1
lea ecx, [esp + 0x164]
push eax
push ecx
call fcn.005362d0
add esp, 0x10
mov al, byte [esi + 0xc]
xor ebp, ebp
test al, al
jbe 0x43a425
mov ebx, dword [esp + 0x24]
push ebx
push 1
lea edx, [esp + 0x1c]
push 4
push edx
call fcn.005362d0
mov eax, dword [esi + 0x10]
add esp, 0x10
lea edx, [esp + 0x30]
mov ecx, dword [eax]
push 0
push 0
push edx
push ebp
push eax
call dword [ecx + 0x40]
mov al, byte [esp + 0x1b]
test al, al
je 0x43a371
mov eax, dword [0xb084b8]
mov edi, dword [esp + 0x14]
test eax, eax
jne 0x43a2ea
mov eax, dword [str.Null_Pointer]
push eax
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov eax, dword [0xb084b8]
add esp, 0xc
test eax, eax
jne 0x43a2ea
call fcn.0052ff20
mov ecx, dword [0xb084b8]
push 0
push 1
push edi
call fcn.00533b80
mov ecx, dword [esp + 0x14]
push ebx
mov edi, eax
push 1
push ecx
push edi
call fcn.005362d0
mov ecx, dword [esp + 0x24]
add esp, 0x10
xor eax, eax
test ecx, ecx
jbe 0x43a334
xor edx, edx
mov dl, byte [eax + edi]
inc eax
mov ecx, dword [esp + edx*4 + 0x15c]
mov edx, dword [esp + 0x34]
mov dword [edx + eax*4 - 4], ecx
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jb 0x43a317
mov eax, dword [0xb084b8]
test eax, eax
jne 0x43a363
mov eax, dword [str.Null_Pointer]
push eax
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov eax, dword [0xb084b8]
add esp, 0xc
test eax, eax
jne 0x43a363
call fcn.0052ff20
mov ecx, dword [0xb084b8]
push edi
call fcn.00533cb0
jmp 0x43a386
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
push ebx
push 1
push ecx
push edx
call fcn.005362d0
add esp, 0x10
mov al, byte [esi + 0xf]
test al, al
jne 0x43a3ed
mov eax, dword [esp + 0x1c]
cmp eax, 0x15
jne 0x43a39d
mov edi, 4
jmp 0x43a3ab
cmp eax, 0x29
jne 0x43a619
mov edi, 1
mov ebx, ebp
xor eax, eax
mov ax, word [esi + 4]
and ebx, 0xffff
mov cl, bl
shr eax, cl
test eax, eax
jne 0x43a3c6
mov eax, 1
xor edx, edx
mov cl, bl
mov dx, word [esi + 6]
shr edx, cl
test edx, edx
jne 0x43a3d9
mov edx, 1
push edi
push edx
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.00439e20
mov ebx, dword [esp + 0x34]
add esp, 0x10
mov al, byte [esp + 0x13]
test al, al
je 0x43a40d
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x10]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
xor edx, edx
inc ebp
mov dl, byte [esi + 0xc]
cmp ebp, edx
jb 0x43a286
mov al, byte [esp + 0x13]
test al, al
je 0x43a466
mov eax, dword [esi + 0x10]
lea edi, [esi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edx, dword [esi]
lea eax, [esp + 0x5c]
push edx
push str.DataLevelsCnv0x_08x.dds
push eax
mov dword [edi], 0
call fcn.0057492c
mov edx, dword [0xaab478]
add esp, 0xc
lea ecx, [esp + 0x5c]
push edi
push ecx
push edx
call fcn.0054ac1b
mov eax, dword [0xb084b8]
test eax, eax
jne 0x43a495
mov eax, dword [str.Null_Pointer]
push eax
push 0x158
push str.._sys_mem_memman.h
call fcn.00401090
mov eax, dword [0xb084b8]
add esp, 0xc
test eax, eax
jne 0x43a495
call fcn.0052ff20
mov ecx, dword [0xb084b8]
push 0
push 1
push 0x10
call fcn.00533b80
mov dword [esp + 0x54], eax
test eax, eax
mov dword [esp + 0x564], 1
je 0x43a4c4
mov ecx, eax
call fcn.00456c00
mov ebp, eax
jmp 0x43a4c6
xor ebp, ebp
push esi
mov ecx, ebp
mov dword [esp + 0x568], 0xffffffff
call fcn.00456d10
test ebp, ebp
jne 0x43a4f6
mov ecx, dword [str.Null_Pointer]
push ecx
push 0xc6
push str..core_hashtable.h
call fcn.00401090
add esp, 0xc
mov ebx, dword [esp + 0x570]
mov eax, dword [ebx + 4]
test eax, eax
jne 0x43a51d
mov edx, dword [str.Null_Pointer]
push edx
push 0xc9
push str..core_hashtable.h
call fcn.00401090
add esp, 0xc
mov ecx, dword [ebx]
mov edx, dword [esi]
mov eax, 1
shl eax, cl
mov ecx, dword [ebx + 4]
dec eax
and eax, edx
lea eax, [eax + eax*2]
lea edi, [ecx + eax*4]
mov eax, dword [ecx + eax*4 + 4]
test eax, eax
je 0x43a56a
push 0
call fcn.00535470
add esp, 4
test eax, eax
je 0x43a556
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
jmp 0x43a558
xor eax, eax
mov edx, dword [esi]
mov dword [eax + 4], ebp
mov dword [eax], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
jmp 0x43a56f
mov dword [edi], edx
mov dword [edi + 4], ebp
mov esi, dword [ebx + 8]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
inc esi
inc eax
mov dword [ebx + 8], esi
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x43a057
mov eax, dword [0xa6d924]
inc eax
cmp eax, 0x70
mov dword [0xa6d924], eax
jbe 0x43a66d
mov dword [esp + 0x14], 0xab5b60
mov eax, 0x5a8f40
mov dword [esp + 0x20], 0x10
xor esi, esi
mov edi, eax
mov edx, dword [edi]
test edx, 0x40000000
jne 0x43a63a
xor bl, bl
xor eax, eax
mov ebp, edx
mov ecx, eax
shr ebp, cl
mov ecx, 1
mov dword [esp + 0x1c], ecx
mov ecx, ebp
mov ebp, dword [esp + 0x1c]
shl ebp, cl
test dword [0xab5b5c], ebp
je 0x43a5ea
test bl, bl
sete bl
add eax, 8
cmp eax, 0x18
jb 0x43a5c6
test edx, edx
jns 0x43a5fb
test bl, bl
sete bl
mov eax, dword [esp + 0x14]
mov ecx, esi
mov edx, 1
shl edx, cl
mov ecx, dword [eax]
test bl, bl
je 0x43a620
test ecx, edx
jne 0x43a63a
push str.fail_1_n
jmp 0x43a629
push 0
call fcn.005755ef
test ecx, edx
je 0x43a63a
push str.fail_2_n
mov ecx, dword [0x5a00ac]
mov byte [ecx], 1
call fcn.00535ef0
add esp, 4
inc esi
add edi, 4
cmp esi, 5
jb 0x43a5b8
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
add edx, 4
dec ecx
mov eax, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ecx
jne 0x43a5b4
mov dword [0xa6d924], 0
mov edx, dword [esp + 0x24]
push edx
call fcn.00536290
mov eax, dword [esp + 0x40]
add esp, 4
mov dword [0xb0961c], eax
mov ecx, dword [esp + 0x55c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x558
ret