Function at 0x401550
Capabilities:
Check os version
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x456cbb
mov eax, dword fs:[0]
push eax
sub esp, 0x708
mov eax, dword [0x46c5a0]
xor eax, esp
mov dword [esp + 0x700], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46c5a0]
xor eax, esp
push eax
lea eax, [esp + 0x71c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x72c]
xor ebx, ebx
push 0x1ff
lea edx, [esp + 0x519]
push ebx
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov byte [esp + 0x520], bl
call fcn.004323a0
add esp, 0xc
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
mov dword [esp + 0x724], ebx
call fcn.0040f965
mov ebp, dword [eax + 4]
push 0x3ff
lea eax, [esp + 0x119]
push ebx
push eax
mov byte [esp + 0x120], bl
call fcn.004323a0
lea eax, [esp + 0x120]
add esp, 0xc
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x401600
mov ecx, dword [str._mac]
mov dx, word [0x45fb38]
mov dword [eax], ecx
mov word [eax + 4], dx
lea eax, [esp + 0x514]
push eax
call fcn.00404050
add esp, 4
test eax, eax
jl 0x401668
lea eax, [esp + 0x514]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401638
lea edi, [esp + 0x114]
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x401650
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]
lea eax, [esp + 0x114]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x401670
mov ecx, dword [str.ie_ver]
mov edx, dword [0x45fb40]
mov dword [eax], ecx
mov cl, byte [0x45fb44]
mov dword [eax + 4], edx
lea esi, [esp + 0x40]
mov byte [eax + 8], cl
call fcn.00403f50
test eax, eax
jne 0x4016d9
cmp dword [esp + 0x58], 0x10
mov eax, dword [esp + 0x44]
jae 0x4016ae
lea eax, [esp + 0x44]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4016b0
lea edi, [esp + 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4016c1
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]
xor eax, eax
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0xf8], bl
mov dword [esp + 0xf9], eax
mov dword [esp + 0xfd], eax
mov dword [esp + 0x101], eax
mov dword [esp + 0x105], eax
mov dword [esp + 0x109], eax
mov dword [esp + 0x10d], eax
mov dword [esp + 0x111], eax
mov word [esp + 0x115], ax
mov byte [esp + 0x117], al
mov dword [esp + 0x60], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40178c
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [esp + 0x1c]
cmp ax, 9
je 0x401759
cmp ax, 6
je 0x401759
xor al, al
jmp 0x40175b
mov al, 1
mov edx, dword [esp + 0x68]
movzx ecx, al
mov eax, dword [esp + 0x64]
neg ecx
sbb ecx, ecx
and ecx, 0x20
add ecx, 0x20
push ecx
mov ecx, dword [esp + 0x64]
push edx
push eax
push ecx
push str._u._u._u._d
lea edx, [esp + 0x108]
call fcn.004037a0
add esp, 0x14
lea eax, [esp + 0x114]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x401794
mov edx, dword [str.win_ver]
mov ecx, dword [0x45fb58]
mov dword [eax], edx
mov dx, word [0x45fb5c]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0xf4]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4017c1
lea edi, [esp + 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4017d2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x114]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x4017f2
cmp dword [ebp + 0xdc], 0x10
mov ecx, dword [str.key_type]
mov edx, dword [0x45fb64]
mov dword [eax], ecx
mov cx, word [0x45fb68]
mov dword [eax + 4], edx
mov dl, byte [0x45fb6a]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
jb 0x401830
mov eax, dword [ebp + 0xc8]
jmp 0x401836
lea eax, [ebp + 0xc8]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401838
lea edi, [esp + 0x114]
sub eax, edx
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x401850
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x114]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x401870
cmp dword [ebp + 0xc0], 0x10
mov ecx, dword [str.key_sn]
mov edx, dword [0x45fb70]
mov dword [eax], ecx
mov cl, byte [0x45fb74]
mov dword [eax + 4], edx
mov byte [eax + 8], cl
jb 0x4018a3
mov eax, dword [ebp + 0xac]
jmp 0x4018a9
lea eax, [ebp + 0xac]
mov edx, eax
jmp 0x4018b0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4018b0
lea edi, [esp + 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4018c1
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]
lea edi, [esp + 0x114]
dec edi
cmp byte [ebp + 0x15c], bl
je 0x401900
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4018f0
mov esi, str.is_client_installed1
jmp 0x40190d
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x401900
mov esi, str.is_client_installed0
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [esp + 0x114]
movsb byte es:[edi], byte [esi]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x401920
cmp dword [ebp + 0x13c], 0x10
mov edx, dword [str.client_type]
mov ecx, dword [0x45fbac]
mov dword [eax], edx
mov edx, dword [0x45fbb0]
mov dword [eax + 4], ecx
mov cx, word [0x45fbb4]
mov dword [eax + 8], edx
mov word [eax + 0xc], cx
jb 0x40195e
mov eax, dword [ebp + 0x128]
jmp 0x401964
lea eax, [ebp + 0x128]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401966
lea edi, [esp + 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x401977
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x114]
rep movsb byte es:[edi], byte [esi]
dec eax
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x401997
cmp dword [ebp + 0x120], 0x10
mov edx, dword [str.client_ver]
mov ecx, dword [0x45fbbc]
mov dword [eax], edx
mov edx, dword [0x45fbc0]
mov dword [eax + 4], ecx
mov cl, byte [0x45fbc4]
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
jb 0x4019d3
mov eax, dword [ebp + 0x10c]
jmp 0x4019d9
lea eax, [ebp + 0x10c]
mov edx, eax
jmp 0x4019e0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4019e0
lea edi, [esp + 0x114]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x4019f1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x114]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x401a12
mov edi, dword [esp + 0x18]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x401a22
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x114]
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x401a41
mov edx, dword [esp + 0x14]
lea edi, [edx + 0x14]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x401a54
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp dword [esp + 0x58], 0x10
rep movsb byte es:[edi], byte [esi]
jb 0x401a7e
mov eax, dword [esp + 0x44]
push eax
call fcn.0040efb4
add esp, 4
mov ecx, dword [esp + 0x71c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x700]
xor ecx, esp
call fcn.0042d034
add esp, 0x714
ret 4