Function at 0x401630
Capabilities:
Access peb ldr_data
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x41e7f0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x425060]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
call fcn.00402e70
mov eax, dword [0x4267ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4267ac
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea esi, [esp + 0x2c]
mov dword [esp + 0x50], 0
call fcn.00407230
push eax
lea eax, [esp + 0x2c]
push eax
mov ebx, str.lang_
mov byte [esp + 0x58], 1
call fcn.00402400
push eax
lea ecx, [esp + 0x30]
push ecx
mov ebx, str.English.ini
mov byte [esp + 0x60], 2
call fcn.00402400
add esp, 0x10
mov byte [esp + 0x50], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4016d5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 5
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4016fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push 0
push str.SoftwareShutdown8
mov byte [esp + 0x60], 6
push 0x80000001
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401830
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.0040af60
test eax, eax
je 0x401830
lea esi, [esp + 0x34]
call fcn.00407230
push eax
lea ecx, [esp + 0x34]
push ecx
mov ebx, str.lang_
mov byte [esp + 0x58], 7
call fcn.00402400
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x34]
push ecx
mov ebx, eax
mov byte [esp + 0x60], 8
call fcn.00402340
push eax
lea edx, [esp + 0x40]
push edx
mov ebx, str..ini
mov byte [esp + 0x68], 9
call fcn.00402400
add esp, 0x18
lea edi, [esp + 0x1c]
mov byte [esp + 0x50], 0xa
call fcn.004025b0
mov byte [esp + 0x50], 9
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4017c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 8
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4017e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 7
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40180b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 6
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401830
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
jne 0x401ab8
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
lea edx, [esp + 0x38]
push edx
mov ecx, str..ini
movzx ebp, ax
call fcn.00402dc0
mov edi, eax
lea esi, [esp + 0x28]
mov byte [esp + 0x50], 0xb
call fcn.00407230
push eax
lea eax, [esp + 0x30]
push eax
mov ebx, str.lang_
mov byte [esp + 0x58], 0xc
call fcn.00402400
mov esi, eax
push 0
mov ecx, ebp
mov byte [esp + 0x5c], 0xd
call fcn.00401100
add esp, 0xc
lea ecx, [esp + 0x30]
push esi
push ecx
mov ebx, eax
call fcn.00402400
lea edx, [esp + 0x3c]
push edi
push edx
mov ebx, eax
mov byte [esp + 0x60], 0xe
call fcn.00402340
add esp, 0x10
lea edi, [esp + 0x1c]
mov byte [esp + 0x50], 0xf
call fcn.004025b0
mov byte [esp + 0x50], 0xe
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0xd
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401908
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0xc
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40192d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0xb
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401952
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 6
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401977
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
call fcn.00407280
test eax, eax
jne 0x401ab8
lea ecx, [esp + 0x28]
push ecx
mov ecx, str..ini
call fcn.00402dc0
mov edi, eax
lea esi, [esp + 0x2c]
mov byte [esp + 0x50], 0x10
call fcn.00407230
push eax
lea edx, [esp + 0x34]
push edx
mov ebx, str.lang_
mov byte [esp + 0x58], 0x11
call fcn.00402400
mov esi, eax
push 1
mov ecx, ebp
mov byte [esp + 0x5c], 0x12
call fcn.00401100
add esp, 0xc
lea ecx, [esp + 0x34]
push esi
push ecx
mov ebx, eax
call fcn.00402400
lea edx, [esp + 0x40]
push edi
push edx
mov ebx, eax
mov byte [esp + 0x60], 0x13
call fcn.00402340
add esp, 0x10
lea edi, [esp + 0x1c]
mov byte [esp + 0x50], 0x14
call fcn.004025b0
mov byte [esp + 0x50], 0x13
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0x12
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0x11
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 0x10
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 6
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ab8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4267ac]
mov eax, dword [edx + 0xc]
push ecx
mov ecx, 0x4267ac
mov dword [esp + 0x40], esp
mov esi, esp
call eax
add eax, 0x10
mov dword [esi], eax
call fcn.00405820
mov byte [esp + 0x54], 0x16
mov eax, dword [esp + 0x28]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x48], esp
mov esi, esp
call fcn.00402ba0
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x58], 0x17
mov esi, dword [esp + 0x24]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x50], esp
mov edi, esp
call fcn.00402ba0
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x5c], 6
call fcn.00409480
mov eax, dword [esp + 0x20]
xor ebx, ebx
cmp eax, ebx
je 0x401b30
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x50], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x20], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401b79
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret