Function at 0x4041f0
Capabilities:
Get hostname
Get session user name
Resolve dns

Disassembly:
sub esp, 0x6c0
mov eax, dword [0x4ba700]
xor eax, esp
mov dword [esp + 0x6bc], eax
push ebx
push ebp
mov ebp, dword [esp + 0x6cc]
push esi
push edi
push 0x138
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.004858b0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
call fcn.004032f0
test eax, eax
je 0x4051a8
lea edx, [esp + 0x1b8]
push str.OS:
push edx
call fcn.0047c59e
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0xc4]
mov esi, dword [esp + 0xb8]
add esp, 8
cmp eax, 4
ja case.default.0x404269
jmp dword [eax*4 + 0x4053d4]
lea edi, [esp + 0x1b8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404278
mov eax, dword [0x4a4218]
mov dword [edi], eax
jmp 0x404c1e
lea eax, [esp + 0x1b8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404294
mov ecx, dword [str.Windows]
mov dword [eax], ecx
mov ecx, dword [0x4a4220]
mov dword [eax + 4], ecx
cmp edx, 1
jne 0x404c1e
lea eax, [esp + 0x1b8]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4042c0
mov edx, dword [str.__Win32s_]
mov ecx, dword [0x4a4228]
mov dword [eax], edx
mov dx, word [0x4a422c]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
jmp 0x404c1e
lea eax, [esp + 0x1b8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4042f1
mov ecx, dword [str.Windows_CE]
mov edx, dword [0x4a4234]
mov dword [eax], ecx
mov cx, word [0x4a4238]
mov dword [eax + 4], edx
mov dl, byte [0x4a423a]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
jmp 0x404c1e
cmp edx, 2
jne 0x4043fa
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb4]
cmp esi, 4
jne 0x40435d
test ecx, ecx
jne 0x40435d
cmp edx, 0x3b6
jne 0x40435d
push str.Windows_95
lea eax, [esp + 0x154]
push eax
jmp 0x404407
lea eax, [esp + 0x18]
call fcn.00403ce0
test eax, eax
je 0x404374
push str.Windows_95_SP1
jmp 0x4043ff
lea eax, [esp + 0x18]
call fcn.00403d10
test eax, eax
je 0x404390
push str.Windows_95_OSR2
lea edx, [esp + 0x154]
push edx
jmp 0x404407
cmp esi, 4
jne 0x4043b1
cmp ecx, 0xa
jne 0x4043b1
cmp edx, 0x7ce
jne 0x4043b1
push str.Windows_98
lea eax, [esp + 0x154]
push eax
jmp 0x404407
lea eax, [esp + 0x18]
call fcn.00403d40
test eax, eax
je 0x4043c5
push str.Windows_98_SP1
jmp 0x4043ff
cmp esi, 4
jne 0x4043fa
cmp ecx, 0xa
jne 0x4043e6
cmp edx, 0x887
jb 0x4043fa
push str.Windows_98_Second_Edition
lea edx, [esp + 0x154]
push edx
jmp 0x404407
cmp ecx, 0x5a
jne 0x4043fa
push str.Windows_Millenium_Edition
lea eax, [esp + 0x154]
push eax
jmp 0x404407
push str.Windows___
lea ecx, [esp + 0x154]
push ecx
call fcn.0047c59e
lea eax, [esp + 0x158]
add esp, 8
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404418
lea edi, [esp + 0x1b8]
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404430
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x404c1e
mov ebx, dword [esp + 0x144]
cmp edx, 3
jne 0x404a0f
mov esi, dword [esp + 0xb0]
cmp esi, 4
ja 0x40460b
lea eax, [esp + 0x1b8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404475
mov edx, dword [str.Windows_NT]
mov ecx, dword [0x4a42cc]
mov dword [eax], edx
mov dx, word [0x4a42d0]
mov dword [eax + 4], ecx
mov cl, byte [0x4a42d2]
mov word [eax + 8], dx
mov byte [eax + 0xa], cl
mov eax, dword [esp + 0x148]
test eax, eax
jne 0x4044f0
lea eax, [esp + 0x1b8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4044b5
mov edx, dword [str.__Workstation_]
mov ecx, dword [0x4a42d8]
mov dword [eax], edx
mov edx, dword [0x4a42dc]
mov dword [eax + 4], ecx
mov cx, word [0x4a42e0]
mov dword [eax + 8], edx
mov dl, byte [0x4a42e2]
mov word [eax + 0xc], cx
mov byte [eax + 0xe], dl
jmp 0x404574
cmp eax, 1
jne 0x404526
lea eax, [esp + 0x1b8]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404500
mov ecx, dword [str.__Server_]
mov edx, dword [0x4a42e8]
mov dword [eax], ecx
mov cx, word [0x4a42ec]
mov dword [eax + 4], edx
mov word [eax + 8], cx
jmp 0x404574
cmp eax, 2
jne 0x404574
test bl, 4
je 0x40454f
lea edi, [esp + 0x1b8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404538
mov ecx, 7
mov esi, str.__Primary_Domain_Controller_
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x404574
test bl, 8
je 0x404574
lea edi, [esp + 0x1b8]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404560
mov ecx, 7
mov esi, str.__Backup_Domain_Controller_
rep movsd dword es:[edi], dword [esi]
test bl, 0x20
je 0x4045bc
lea eax, [esp + 0x1b8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404581
mov edx, dword [str.___Datacenter_]
mov ecx, dword [0x4a4330]
mov dword [eax], edx
mov edx, dword [0x4a4334]
mov dword [eax + 4], ecx
mov cx, word [0x4a4338]
mov dword [eax + 8], edx
mov dl, byte [0x4a433a]
mov word [eax + 0xc], cx
mov byte [eax + 0xe], dl
jmp 0x404a0f
test bl, 2
je 0x404a0f
lea eax, [esp + 0x1b8]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4045d0
mov ecx, dword [str.___Enterprise_]
mov edx, dword [0x4a4340]
mov dword [eax], ecx
mov ecx, dword [0x4a4344]
mov dword [eax + 4], edx
mov dx, word [0x4a4348]
mov dword [eax + 8], ecx
mov cl, byte [0x4a434a]
mov word [eax + 0xc], dx
mov byte [eax + 0xe], cl
jmp 0x404a0f
lea eax, [esp + 0x18]
call fcn.00403d70
test eax, eax
je 0x4047c9
lea eax, [esp + 0x1b8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404624
mov edx, dword [str.Windows_2000]
mov ecx, dword [0x4a4350]
mov dword [eax], edx
mov edx, dword [0x4a4354]
mov dword [eax + 4], ecx
mov cl, byte [0x4a4358]
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
cmp esi, 5
jne 0x404a0f
cmp dword [esp + 0xb4], 0
jne 0x404a0f
mov eax, dword [esp + 0x148]
test eax, eax
jne 0x4046b0
lea eax, [esp + 0x1b8]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404680
mov edx, dword [str.__Professional_]
mov ecx, dword [0x4a4360]
mov dword [eax], edx
mov edx, dword [0x4a4364]
mov dword [eax + 4], ecx
mov ecx, dword [0x4a4368]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
jmp 0x404730
cmp eax, 1
jne 0x4046e6
lea eax, [esp + 0x1b8]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4046c0
mov edx, dword [str.__Server_]
mov ecx, dword [0x4a42e8]
mov dword [eax], edx
mov dx, word [0x4a42ec]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
jmp 0x404730
cmp eax, 2
jne 0x404730
lea eax, [esp + 0x1b8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4046f3
mov ecx, dword [str.__Domain_Controller_]
mov edx, dword [0x4a4370]
mov dword [eax], ecx
mov ecx, dword [0x4a4374]
mov dword [eax + 4], edx
mov edx, dword [0x4a4378]
mov dword [eax + 8], ecx
mov ecx, dword [0x4a437c]
mov dword [eax + 0xc], edx
mov dl, byte [0x4a4380]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], dl
test bl, 0x20
je 0x40477b
lea eax, [esp + 0x1b8]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404740
mov ecx, dword [str.___Datacenter_]
mov edx, dword [0x4a4330]
mov dword [eax], ecx
mov ecx, dword [0x4a4334]
mov dword [eax + 4], edx
mov dx, word [0x4a4338]
mov dword [eax + 8], ecx
mov cl, byte [0x4a433a]
mov word [eax + 0xc], dx
mov byte [eax + 0xe], cl
jmp 0x404a0f
test bl, 2
je 0x404a0f
lea eax, [esp + 0x1b8]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404790
mov edx, dword [str.___Advanced_Server_]
mov ecx, dword [0x4a4388]
mov dword [eax], edx
mov edx, dword [0x4a438c]
mov dword [eax + 4], ecx
mov ecx, dword [0x4a4390]
mov dword [eax + 8], edx
mov edx, dword [0x4a4394]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
jmp 0x404a0f
lea eax, [esp + 0x18]
call fcn.00403d90
test eax, eax
je 0x404a0f
mov ecx, dword [esp + 0xb0]
mov ebp, dword [esp + 0x148]
mov edx, dword [esp + 0xb4]
cmp ecx, 5
jne 0x404846
test edx, edx
je 0x404846
test bl, 0x40
je 0x404846
lea eax, [esp + 0x1b8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404805
mov ecx, dword [str.Windows_XP__Personal_]
mov dword [eax], ecx
mov ecx, dword [0x4a439c]
mov dword [eax + 4], ecx
mov ecx, dword [0x4a43a0]
mov dword [eax + 8], ecx
mov ecx, dword [0x4a43a4]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4a43a8]
mov dword [eax + 0x10], ecx
mov cx, word [0x4a43ac]
mov word [eax + 0x14], cx
jmp 0x404884
lea eax, [esp + 0x18]
call fcn.004041b0
test eax, eax
je 0x4048bc
lea edi, [esp + 0x1b8]
dec edi
jmp 0x404860
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404860
cmp dword [esp + 0xb0], 5
mov ecx, 6
mov esi, str.Windows_XP__Professional_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jne 0x404a0f
test edx, edx
je 0x404949
test bl, 0x20
je 0x404949
lea edi, [esp + 0x1b8]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4048a0
mov ecx, 5
mov esi, str.___Datacenter_Edition_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x404a0f
cmp ecx, 5
jne 0x404a0f
test edx, edx
je 0x404a0f
cmp ebp, 1
jne 0x404919
lea eax, [esp + 0x1b8]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4048e0
mov ecx, dword [str.Windows_Server_2003]
mov dword [eax], ecx
mov ecx, dword [0x4a43d0]
mov dword [eax + 4], ecx
mov ecx, dword [0x4a43d4]
mov dword [eax + 8], ecx
mov ecx, dword [0x4a43d8]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4a43dc]
mov dword [eax + 0x10], ecx
jmp 0x404884
cmp ebp, 2
jne 0x404884
lea edi, [esp + 0x1b8]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404930
mov ecx, 0xa
mov esi, str.Windows_Server_2003__Domain_Controller_
rep movsd dword es:[edi], dword [esi]
jmp 0x404884
cmp dword [esp + 0xb0], 5
jne 0x404a0f
test edx, edx
je 0x404a0f
test bl, 2
je 0x40498c
lea edi, [esp + 0x1b8]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404970
mov ecx, 5
mov esi, str.___Enterprise_Edition_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x404a0f
test bl, bl
jns 0x4049c5
lea eax, [esp + 0x1b8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404998
mov edx, dword [str.___Web_Edition_]
mov ecx, dword [0x4a443c]
mov dword [eax], edx
mov edx, dword [0x4a4440]
mov dword [eax + 4], ecx
mov ecx, dword [0x4a4444]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
jmp 0x404a0f
cmp ebp, 1
jne 0x404a0f
lea eax, [esp + 0x1b8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4049d2
mov edx, dword [str.___Standard_Edition_]
mov ecx, dword [0x4a444c]
mov dword [eax], edx
mov edx, dword [0x4a4450]
mov dword [eax + 4], ecx
mov ecx, dword [0x4a4454]
mov dword [eax + 8], edx
mov edx, dword [0x4a4458]
mov dword [eax + 0xc], ecx
mov cl, byte [0x4a445c]
mov dword [eax + 0x10], edx
mov byte [eax + 0x14], cl
test bl, 0x10
je 0x404a5f
lea eax, [esp + 0x1b8]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404a20
mov edx, dword [str.___Terminal_Services_]
mov ecx, dword [0x4a4464]
mov dword [eax], edx
mov edx, dword [0x4a4468]
mov dword [eax + 4], ecx
mov ecx, dword [0x4a446c]
mov dword [eax + 8], edx
mov edx, dword [0x4a4470]
mov dword [eax + 0xc], ecx
mov cx, word [0x4a4474]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
test bl, 1
je 0x404a86
lea edi, [esp + 0x1b8]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404a70
mov ecx, 9
mov esi, str.___BackOffice_Small_Business_Edition_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
test ebx, 0x100
je 0x404ac1
lea eax, [esp + 0x1b8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404a96
mov edx, dword [str.___Embedded_]
mov ecx, dword [0x4a44a4]
mov dword [eax], edx
mov edx, dword [0x4a44a8]
mov dword [eax + 4], ecx
mov cl, byte [0x4a44ac]
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
test ebx, 0x200
je 0x404ae8
lea edi, [esp + 0x1b8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404ad1
mov ecx, 0xa
mov esi, str.___Terminal_Services_in_Remote_Admin_Mode_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
test ebx, 0x4000
je 0x404b0d
lea edi, [esp + 0x1b8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404af8
mov ecx, 6
mov esi, str.___Media_Center_Edition_
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
test ebx, 0x400
je 0x404b64
lea eax, [esp + 0x1b8]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404b20
mov edx, dword [str.___Uniprocessor_Free_]
mov ecx, dword [0x4a44fc]
mov dword [eax], edx
mov edx, dword [0x4a4500]
mov dword [eax + 4], ecx
mov ecx, dword [0x4a4504]
mov dword [eax + 8], edx
mov edx, dword [0x4a4508]
mov dword [eax + 0xc], ecx
mov cx, word [0x4a450c]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
jmp 0x404c1e
test ebx, 0x800
je 0x404b8e
lea edi, [esp + 0x1b8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404b74
mov ecx, 6
mov esi, str.___Uniprocessor_Checked_
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
jmp 0x404c1e
test ebx, 0x1000
je 0x404bdf
lea eax, [esp + 0x1b8]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404ba0
mov edx, dword [str.___Multiprocessor_Free_]
mov ecx, dword [0x4a4530]
mov dword [eax], edx
mov edx, dword [0x4a4534]
mov dword [eax + 4], ecx
mov ecx, dword [0x4a4538]
mov dword [eax + 8], edx
mov edx, dword [0x4a453c]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x4a4540]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
jmp 0x404c1e
test ebx, 0x2000
je 0x404c1e
lea edi, [esp + 0x1b8]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404bf0
mov ecx, 6
mov esi, str.___Multiprocessor_Checked_
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x404c1e
lea edx, [esp + 0x150]
push str.Unknown_OS
push edx
call fcn.0047c59e
add esp, 8
mov eax, dword [esp + 0x28]
dec eax
cmp eax, 9
ja case.default.0x404c2c
jmp dword [eax*4 + 0x4053e8]
lea eax, [esp + 0x1b8]
dec eax
jmp 0x404c40
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404c40
mov ecx, dword [str.___Intel_Processor_]
mov edx, dword [0x4a4570]
mov dword [eax], ecx
mov ecx, dword [0x4a4574]
mov dword [eax + 4], edx
mov edx, dword [0x4a4578]
mov dword [eax + 8], ecx
mov ecx, dword [0x4a457c]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
jmp 0x404f3f
lea eax, [esp + 0x1b8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404c81
mov edx, dword [str.___MSIL_Processor_]
mov ecx, dword [0x4a4584]
mov dword [eax], edx
mov edx, dword [0x4a4588]
mov dword [eax + 4], ecx
mov ecx, dword [0x4a458c]
mov dword [eax + 8], edx
mov dx, word [0x4a4590]
mov dword [eax + 0xc], ecx
mov cl, byte [0x4a4592]
mov word [eax + 0x10], dx
mov byte [eax + 0x12], cl
jmp 0x404f3f
lea eax, [esp + 0x1b8]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404cd0
mov edx, dword [str.___MIPS_Processor_]
mov ecx, dword [0x4a4598]
mov dword [eax], edx
mov edx, dword [0x4a459c]
mov dword [eax + 4], ecx
mov ecx, dword [0x4a45a0]
mov dword [eax + 8], edx
mov dx, word [0x4a45a4]
mov dword [eax + 0xc], ecx
mov cl, byte [0x4a45a6]
mov word [eax + 0x10], dx
mov byte [eax + 0x12], cl
jmp 0x404f3f
lea eax, [esp + 0x1b8]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404d20
mov edx, dword [str.___ARM_Processor_]
mov ecx, dword [0x4a45ac]
mov dword [eax], edx
mov edx, dword [0x4a45b0]
mov dword [eax + 4], ecx
mov ecx, dword [0x4a45b4]
mov dword [eax + 8], edx
mov dx, word [0x4a45b8]
mov dword [eax + 0xc], ecx
mov word [eax + 0x10], dx
jmp 0x404f3f
lea eax, [esp + 0x1b8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404d63
mov ecx, dword [str.___SHX_Processor_]
mov edx, dword [0x4a45c0]
mov dword [eax], ecx
mov ecx, dword [0x4a45c4]
mov dword [eax + 4], edx
mov edx, dword [0x4a45c8]
mov dword [eax + 8], ecx
mov cx, word [0x4a45cc]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
jmp 0x404f3f
lea eax, [esp + 0x1b8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404da6
mov edx, dword [str.___Alpha_Processor_]
mov ecx, dword [0x4a45d4]
mov dword [eax], edx
mov edx, dword [0x4a45d8]
mov dword [eax + 4], ecx
mov ecx, dword [0x4a45dc]
mov dword [eax + 8], edx
mov edx, dword [0x4a45e0]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
jmp 0x404f3f
lea eax, [esp + 0x1b8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404de7
mov ecx, dword [str.___Alpha64_Processor_]
mov edx, dword [0x4a45e8]
mov dword [eax], ecx
mov ecx, dword [0x4a45ec]
mov dword [eax + 4], edx
mov edx, dword [0x4a45f0]
mov dword [eax + 8], ecx
mov ecx, dword [0x4a45f4]
mov dword [eax + 0xc], edx
mov dx, word [0x4a45f8]
jmp 0x404f38
lea eax, [esp + 0x1b8]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404e30
mov ecx, dword [str.___PPC_Processor_]
mov edx, dword [0x4a4600]
mov dword [eax], ecx
mov ecx, dword [0x4a4604]
mov dword [eax + 4], edx
mov edx, dword [0x4a4608]
mov dword [eax + 8], ecx
mov cx, word [0x4a460c]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
jmp 0x404f3f
lea eax, [esp + 0x1b8]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404e73
mov edx, dword [str.___IA64_Processor_]
mov ecx, dword [0x4a4614]
mov dword [eax], edx
mov edx, dword [0x4a4618]
mov dword [eax + 4], ecx
mov ecx, dword [0x4a461c]
mov dword [eax + 8], edx
mov dx, word [0x4a4620]
mov dword [eax + 0xc], ecx
mov cl, byte [0x4a4622]
mov word [eax + 0x10], dx
mov byte [eax + 0x12], cl
jmp 0x404f3f
lea eax, [esp + 0x1b8]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404ec0
mov edx, dword [str.___AMD64_Processor_]
mov ecx, dword [0x4a4628]
mov dword [eax], edx
mov edx, dword [0x4a462c]
mov dword [eax + 4], ecx
mov ecx, dword [0x4a4630]
mov dword [eax + 8], edx
mov edx, dword [0x4a4634]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
jmp 0x404f3f
lea eax, [esp + 0x1b8]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x404f00
mov ecx, dword [str.___Unknown_Processor_]
mov edx, dword [0x4a463c]
mov dword [eax], ecx
mov ecx, dword [0x4a4640]
mov dword [eax + 4], edx
mov edx, dword [0x4a4644]
mov dword [eax + 8], ecx
mov ecx, dword [0x4a4648]
mov dword [eax + 0xc], edx
mov dx, word [0x4a464c]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x154]
push str._v_d.
push ecx
call fcn.0047c59e
lea eax, [esp + 0x15c]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404f62
lea edi, [esp + 0x1b8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404f73
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov eax, 0xcccccccd
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
mov esi, ecx
sub esi, eax
je 0x404fc8
push ecx
cmp ecx, 9
jbe 0x404fb9
push str._02d
lea ecx, [esp + 0x158]
push ecx
jmp 0x404fd6
push str._01d
lea edx, [esp + 0x158]
push edx
jmp 0x404fd6
push edx
push str._01d
lea eax, [esp + 0x158]
push eax
call fcn.0047c59e
lea eax, [esp + 0x15c]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404fe7
lea edi, [esp + 0x1b8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404ff8
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test eax, eax
je 0x405060
push eax
lea ecx, [esp + 0x154]
push str._Build:_d
push ecx
call fcn.0047c59e
lea eax, [esp + 0x15c]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405037
lea edi, [esp + 0x1b8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405048
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov di, word [esp + 0xac]
test di, di
je 0x40515b
mov si, word [esp + 0xae]
test si, si
je 0x405107
cmp dword [esp + 0xbc], 3
jne 0x4050b9
cmp dword [esp + 0xb0], 4
ja 0x4050b9
cmp di, 6
jne 0x4050b9
cmp si, 1
jne 0x4050b9
lea edx, [esp + 0x150]
push str._Service_Pack:_6a
push edx
call fcn.0047c59e
add esp, 8
jmp 0x405120
lea eax, [esp + 0x18]
call fcn.00403db0
test eax, eax
je 0x4050e8
cmp di, 1
jne 0x4050e8
cmp si, di
jne 0x4050e8
lea eax, [esp + 0x150]
push str._Service_Pack:_1a
push eax
call fcn.0047c59e
add esp, 8
jmp 0x405120
movzx ecx, si
push ecx
movzx edx, di
push edx
lea eax, [esp + 0x158]
push str._Service_Pack:_d._d
push eax
call fcn.0047c59e
add esp, 0x10
jmp 0x405120
movzx ecx, di
push ecx
lea edx, [esp + 0x154]
push str._Service_Pack:_d
push edx
call fcn.0047c59e
add esp, 0xc
lea eax, [esp + 0x150]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405130
lea edi, [esp + 0x1b8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405141
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x405181
mov ax, word [esp + 0xae]
test ax, ax
je 0x405181
movzx eax, ax
push eax
lea ecx, [esp + 0x154]
push str._Service_Pack:0._d
push ecx
call fcn.0047c59e
add esp, 0xc
lea edi, [esp + 0x1b8]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405190
mov dx, word [0x4a46d8]
mov ebp, dword [esp + 0x14]
mov word [edi], dx
jmp 0x4051bd
lea eax, [esp + 0x1b8]
push str.Failed_in_call_to_GetOSVersion_n
push eax
call fcn.0047c59e
add esp, 8
push 0x100
lea ecx, [esp + 0x4c5]
push 0
push ecx
mov byte [esp + 0x4cc], 0
call fcn.004858b0
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x4c4]
push eax
mov dword [esp + 0x18], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x40524b
mov ecx, dword [str.Current_user_:]
mov dword [ebp], ecx
mov edx, dword [0x4a4700]
mov dword [ebp + 4], edx
mov eax, dword [0x4a4704]
mov dword [ebp + 8], eax
mov ecx, dword [0x4a4708]
lea eax, [esp + 0x4c0]
mov dword [ebp + 0xc], ecx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405227
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405235
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x100
lea edx, [esp + 0x3bd]
push 0
push edx
mov byte [esp + 0x3c4], 0
call fcn.004858b0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3bc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x4052e6
mov eax, ebp
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x405284
mov edx, dword [str._nComputerName_:]
mov dword [eax], edx
mov ecx, dword [0x4a4710]
mov dword [eax + 4], ecx
mov edx, dword [0x4a4714]
mov dword [eax + 8], edx
mov ecx, dword [0x4a4718]
mov dword [eax + 0xc], ecx
mov dl, byte [0x4a471c]
mov byte [eax + 0x10], dl
lea eax, [esp + 0x3b8]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4052c1
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4052d0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0xff
lea eax, [esp + 0x5cc]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x40536b
lea ecx, [esp + 0x5c8]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40536b
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call sub.WSOCK32.dll_inet_ntoa
test eax, eax
je 0x40536b
mov ecx, ebp
dec ecx
mov dl, byte [ecx + 1]
inc ecx
test dl, dl
jne 0x405321
mov edx, dword [str._nIP_:]
mov dword [ecx], edx
mov dx, word [0x4a4724]
mov word [ecx + 4], dx
mov dl, byte [0x4a4726]
mov byte [ecx + 6], dl
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405347
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405355
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405370
mov ax, word [0x4a46d8]
mov word [edi], ax
lea eax, [esp + 0x1b8]
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405390
sub eax, ecx
dec ebp
mov esi, ecx
mov edi, ebp
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4053a0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x6cc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0047c3ff
add esp, 0x6c0
ret