Function at 0x4054e0
Capabilities:
Check os version
Get installed programs

Disassembly:
push 0xffffffffffffffff
push 0x42ba16
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x441dac]
xor eax, esp
mov dword [esp + 0xec], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x441dac]
xor eax, esp
push eax
lea eax, [esp + 0x104]
mov dword fs:[0], eax
mov eax, dword [esp + 0x114]
mov dword [esp + 0x1c], eax
call fcn.0040f911
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x405542
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x20], esi
push 0x42ea1b
lea ecx, [esp + 0x18]
mov dword [esp + 0x110], ebx
call fcn.004045b0
mov ebp, dword [esp + 0x118]
cmp ebp, ebx
mov byte [esp + 0x10c], 1
jne 0x4055aa
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x10c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4055a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
jmp 0x4057d2
cmp dword [0x43900c], 2
jne 0x4057a3
push 0x94
lea ecx, [esp + 0x30]
push ebx
push ecx
call fcn.00418130
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x30], 5
jne 0x40557a
cmp dword [esp + 0x34], 1
jne 0x40557a
mov edi, str.Service_Pack
lea esi, [esp + 0x40]
mov ecx, 0xd
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x405604
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x405832
mov edi, str.Service_Pack_1
lea esi, [esp + 0x40]
mov ecx, 0xf
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x405625
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x405832
mov edi, str.Service_Pack_2
lea esi, [esp + 0x40]
mov ecx, 0xf
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x405646
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x405869
cmp ebp, ebx
jbe 0x4057a3
mov esi, dword [esp + 0x1c]
lea ebp, [esp + 0xc0]
mov dword [esp + 0x18], esi
sub ebp, esi
jmp 0x405674
mov esi, dword [esp + 0x18]
push 0x40
lea eax, [esp + 0xc4]
push 0
push eax
call fcn.00418130
add esp, 0xc
mov eax, esi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [eax + ebp], cl
add eax, 1
test cl, cl
jne 0x405690
lea ecx, [esp + 0xc0]
push ecx
call fcn.004180bb
push esi
lea edx, [esp + 0x1c]
push 0x42f028
push edx
call fcn.00403ab0
mov eax, dword [esp + 0x24]
push eax
push ebx
push str.templogCheckRndisBKExist___FileDescList__d_.szFileName:_sztemp__s_n
call fcn.00404820
add esp, 0x1c
mov edi, str.kb909394
lea esi, [esp + 0xc0]
mov ecx, 9
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x405715
mov edi, 0x42efc4
lea esi, [esp + 0xc0]
mov ecx, 9
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x405715
mov edi, 0x42efb8
lea esi, [esp + 0xc0]
mov ecx, 9
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x405820
mov eax, dword [esp + 0x14]
push eax
push str.templogCheckRndisBKExist____s_n
call fcn.00404820
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push edx
call fcn.004031c0
mov eax, dword [eax]
add esp, 0x14
lea ecx, [esp + 0x24]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.004023c0
test esi, esi
mov edx, dword [esp + 0x14]
push edx
jne 0x405846
push str.templogCheckRndisBKExist___1_already_installed__s_n
call fcn.00404820
mov eax, dword [esp + 0x2c]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add dword [esp + 0x18], 0x1cc
add ebx, 1
sub ebp, 0x1cc
cmp ebx, dword [esp + 0x118]
jb 0x405670
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x10c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x10c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xec]
xor ecx, esp
call fcn.0041811d
add esp, 0xfc
ret
mov ecx, dword [esp + 0x14]
push ecx
push str.templogCheckRndisBKExist___3__s_not_in_the_cfg_files_n
call fcn.00404820
add esp, 8
lea ecx, [esp + 0x14]
call fcn.004023c0
lea ecx, [esp + 0x20]
call fcn.004023c0
jmp 0x4057f6
push str.templogCheckRndisBKExist___2__s_not_installed_n
call fcn.00404820
add esp, 8
lea ecx, [esp + 0x14]
call fcn.004023c0
lea ecx, [esp + 0x20]
call fcn.004023c0
xor al, al
jmp 0x4057f8
mov edi, str.Service_Pack_3
lea esi, [esp + 0x40]
mov ecx, 0xf
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x405882
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4057a3
cmp ebp, ebx
mov dword [esp + 0x18], ebx
jbe 0x4057a3
mov ebp, dword [esp + 0x1c]
lea ebx, [esp + 0xc0]
sub ebx, ebp
push 0x40
lea eax, [esp + 0xc4]
push 0
push eax
call fcn.00418130
add esp, 0xc
mov eax, ebp
lea esp, [esp]
mov cl, byte [eax]
mov byte [ebx + eax], cl
add eax, 1
test cl, cl
jne 0x4058c0
lea ecx, [esp + 0xc0]
push ecx
call fcn.004180bb
push ebp
lea edx, [esp + 0x1c]
push 0x42f028
push edx
call fcn.00403ab0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push str.templogCheckRndisBKExist___FileDescList__d_.szFileName:_sztemp__s_n
call fcn.00404820
add esp, 0x1c
mov edi, 0x42efc4
lea esi, [esp + 0xc0]
mov ecx, 9
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x405962
mov edi, 0x42efb8
lea esi, [esp + 0xc0]
mov ecx, 9
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x405962
mov eax, dword [esp + 0x14]
mov edi, str.kb909394
lea esi, [esp + 0xc0]
mov ecx, 9
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
push eax
jne 0x4059fc
lea ecx, [esp + 0x44]
push ecx
push str.templogCheckRndisBKExist___5_systemVersion_is__s__s_not_need_n
call fcn.00404820
add esp, 0xc
jmp 0x4059d3
mov edx, dword [esp + 0x14]
push edx
push str.templogCheckRndisBKExist____s_n
call fcn.00404820
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
push ecx
call fcn.004031c0
mov eax, dword [eax]
add esp, 0x14
lea edx, [esp + 0x24]
push edx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.004023c0
test esi, esi
jne 0x405a06
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x44]
push ecx
push str.templogCheckRndisBKExist___4_systemVersion_is__s__s__already_be_installed_n
call fcn.00404820
mov edx, dword [esp + 0x30]
add esp, 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
add eax, 1
sub ebx, 0x1cc
add ebp, 0x1cc
cmp eax, dword [esp + 0x118]
mov dword [esp + 0x18], eax
jb 0x4058a3
jmp 0x4057a3
push str.templogCheckRndisBKExist___6__s_not_in_the_cfg_files_n
jmp 0x40582a
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x44]
push edx
push str.templogCheckRndisBKExist___5_systemVersion_is__s__s_not_installed_n
call fcn.00404820
add esp, 0xc
jmp 0x405853