Function at 0x4031e0
Capabilities:
Access peb ldr_data
Check os version
Contain obfuscated stackstrings
Get common file path
Get ntdll base address
Get process heap flags
Get process heap force flags
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x41c7d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3a4
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
lea edi, [esi + 4]
mov ecx, edi
call fcn.00414e40
lea ebp, [esi + 8]
mov dword [esp + 0x3bc], 0
mov ecx, ebp
call fcn.00414e40
lea ebx, [esi + 0xc]
mov byte [esp + 0x3bc], 1
mov ecx, ebx
call fcn.00414e40
lea ecx, [esi + 0x10]
mov byte [esp + 0x3bc], 2
call fcn.00414e40
lea ecx, [esi + 0x14]
mov byte [esp + 0x3bc], 3
call fcn.00414e40
lea ecx, [esi + 0x18]
mov byte [esp + 0x3bc], 4
call fcn.00414e40
lea ecx, [esi + 0x1c]
mov byte [esp + 0x3bc], 5
call fcn.00414e40
lea ecx, [esi + 0x20]
mov byte [esp + 0x3bc], 6
call fcn.00414e40
lea ecx, [esi + 0x24]
mov byte [esp + 0x3bc], 7
call fcn.00414e40
lea ecx, [esi + 0x28]
mov byte [esp + 0x3bc], 8
call fcn.00414e40
lea ecx, [esi + 0x2c]
mov byte [esp + 0x3bc], 9
call fcn.00414e40
lea ecx, [esi + 0x30]
mov byte [esp + 0x3bc], 0xa
call fcn.00414e40
lea ecx, [esi + 0x34]
mov byte [esp + 0x3bc], 0xb
call fcn.00414e40
lea ecx, [esi + 0x38]
mov byte [esp + 0x3bc], 0xc
call fcn.00414e40
lea eax, [esp + 0x20]
mov byte [esp + 0x3bc], 0xd
push eax
mov dword [esi], 0x41d444
mov dword [esp + 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0xb4]
push 0x200
push edx
mov dword [esi + 0x3c], ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0xb4]
lea ecx, [esp + 0x10]
push eax
call fcn.00414fb4
push eax
mov ecx, edi
mov byte [esp + 0x3c0], 0xe
call fcn.0041503f
lea ecx, [esp + 0x10]
mov byte [esp + 0x3bc], 0xd
call fcn.00414f8b
lea ecx, [esp + 0xb4]
push 0x200
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0xb4]
lea ecx, [esp + 0x10]
push edx
call fcn.00414fb4
push eax
mov ecx, ebp
mov byte [esp + 0x3c0], 0xf
call fcn.0041503f
lea ecx, [esp + 0x10]
mov byte [esp + 0x3bc], 0xd
call fcn.00414f8b
push str.INF
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.0041519d
push eax
mov ecx, ebx
mov byte [esp + 0x3c0], 0x10
call fcn.0041503f
lea ecx, [esp + 0x10]
mov byte [esp + 0x3bc], 0xd
call fcn.00414f8b
push str.OTHER
lea ecx, [esp + 0x14]
push ebx
push ecx
call fcn.0041519d
push eax
lea ecx, [esi + 0x10]
mov byte [esp + 0x3c0], 0x11
call fcn.0041503f
lea ecx, [esp + 0x10]
mov byte [esp + 0x3bc], 0xd
call fcn.00414f8b
push edi
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.0041503f
mov eax, dword [esi + 0x3c]
mov ebx, 2
cmp eax, ebx
jne 0x40341e
push str.DRIVERS
mov ecx, edi
call fcn.00415270
lea edx, [esp + 0xb4]
push edx
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0xb4]
lea ecx, [esp + 0x10]
push eax
call fcn.00414fb4
push eax
lea ecx, [esi + 0x18]
mov byte [esp + 0x3c0], 0x12
call fcn.0041503f
lea ecx, [esp + 0x10]
mov byte [esp + 0x3bc], 0xd
call fcn.00414f8b
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x34]
and ecx, 0xffff
push edx
mov dword [esi + 0x40], ecx
lea ecx, [esp + 0x14]
call fcn.00414fb4
push eax
lea ecx, [esi + 0x38]
mov byte [esp + 0x3c0], 0x13
call fcn.0041503f
lea ecx, [esp + 0x10]
mov byte [esp + 0x3bc], 0xd
call fcn.00414f8b
mov eax, dword [esi + 0x3c]
cmp eax, 1
jne 0x4034e2
mov eax, dword [esi + 0x40]
cmp eax, 0x3b6
jne 0x4034c2
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x44]
mov dword [esi + 0x4c], eax
jmp 0x403529
cmp eax, 0x60a
jb 0x4034d3
mov eax, ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x4c], eax
jmp 0x403529
mov dword [esi + 0x44], 1
mov eax, dword [esi + 0x44]
mov dword [esi + 0x4c], eax
jmp 0x403529
cmp eax, ebx
jne 0x403529
mov eax, dword [esp + 0x24]
cmp eax, 4
jne 0x4034f8
mov dword [esi + 0x4c], 5
jmp 0x403529
cmp eax, 5
jne 0x403506
mov dword [esi + 0x4c], 8
jmp 0x403529
cmp eax, 3
jne 0x403529
mov eax, dword [esp + 0x28]
cmp eax, 0x32
jne 0x40351d
mov dword [esi + 0x4c], 3
jmp 0x403529
cmp eax, 0x33
jne 0x403529
mov dword [esi + 0x4c], 4
mov eax, dword [esi + 0x4c]
cmp eax, 8
ja case.0x403531.6
jmp dword [eax*4 + 0x403654]
push str.Windows_95
jmp 0x40356e
push str.Windows_98
jmp 0x40356e
push str.Windows_95_OSR2
jmp 0x40356e
push str.Windows_NT_3.50
jmp 0x40356e
push str.Windows_NT_3.51
jmp 0x40356e
push str.Windows_NT_4.0
jmp 0x40356e
push str.Windows_NT_5.0
jmp 0x40356e
push 0x4232fc
lea ecx, [esi + 0x34]
call fcn.0041508e
lea ecx, [esp + 0x10]
mov edi, 0x100
push ecx
push 0x20019
push 0
push str.SystemCurrentControlSetcontrolComputerNameComputerName
push 0x80000002
mov dword [esi + 0x50], 0
mov dword [esp + 0x28], edi
call dword [0x42b564]
test eax, eax
jne 0x40360d
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x2b4]
push edx
push eax
push 0
push 0
push str.ComputerName
push ecx
mov dword [esp + 0x2c], edi
call dword [0x42b568]
test eax, eax
jne 0x403602
lea edx, [esp + 0x2b4]
lea ecx, [esp + 0x18]
push edx
call fcn.00414fb4
push eax
lea ecx, [esi + 0x30]
mov byte [esp + 0x3c0], 0x14
call fcn.0041503f
lea ecx, [esp + 0x18]
mov byte [esp + 0x3bc], 0xd
call fcn.00414f8b
mov eax, dword [esp + 0x10]
push eax
call dword [0x42b558]
mov eax, dword [esp + 0x3c4]
test eax, eax
je 0x403634
mov eax, dword [esi + 0x3c]
cmp eax, 1
jne 0x403629
mov ecx, esi
call fcn.00403910
jmp 0x403634
cmp eax, ebx
jne 0x403634
mov ecx, esi
call fcn.00403790
mov ecx, dword [esp + 0x3b4]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x3b0
ret 4