Function at 0x4029d9
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xa8
mov eax, dword [fcn.00408e81]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040102d
lea ecx, [esi + 8]
call fcn.0040102d
lea ecx, [esi + 0x10]
call fcn.0040102d
lea ecx, [esi + 0x18]
call fcn.0040102d
lea ecx, [esi + 0x20]
call fcn.0040102d
lea ecx, [esi + 0x28]
call fcn.0040102d
lea ecx, [esi + 0x30]
call fcn.0040102d
lea ecx, [esi + 0x38]
call fcn.0040102d
lea ecx, [esi + 0x40]
call fcn.0040102d
lea ecx, [esi + 0x48]
call fcn.0040102d
lea ecx, [esi + 0x50]
call fcn.0040102d
lea ecx, [esi + 0x58]
call fcn.0040102d
lea ecx, [esi + 0x60]
call fcn.0040102d
lea ecx, [esi + 0x68]
call fcn.0040102d
lea ecx, [esi + 0x70]
call fcn.0040102d
lea ecx, [esi + 0x78]
call fcn.0040102d
lea ecx, [esi + 0x80]
call fcn.0040102d
lea ecx, [esi + 0x88]
call fcn.0040102d
lea ecx, [esi + 0x90]
call fcn.0040102d
lea ecx, [esi + 0x98]
call fcn.0040102d
lea ecx, [esi + 0xa0]
call fcn.0040102d
lea ecx, [esi + 0xa8]
call fcn.0040102d
lea ecx, [esi + 0xb0]
call fcn.0040102d
lea ecx, [esi + 0xb8]
call fcn.0040102d
lea ecx, [esi + 0xc0]
call fcn.0040102d
mov eax, dword [ebp + 0x7c]
xor ebx, ebx
lea ecx, [esi + 0xe4]
mov dword [esi + 0xcc], eax
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xdc], ebx
mov byte [esi + 0xe0], bl
call fcn.0040102d
lea ecx, [esi + 0xec]
call fcn.0040102d
lea edi, [esi + 0xf4]
mov dword [ebp - 0x2c], 0x10
mov ecx, edi
call fcn.0040102d
add edi, 8
dec dword [ebp - 0x2c]
jns 0x402b13
lea ecx, [esi + 0x17c]
call fcn.0040102d
lea ecx, [esi + 0x184]
call fcn.0040102d
lea ecx, [esi + 0x18c]
call fcn.0040102d
lea ecx, [esi + 0x194]
call fcn.0040102d
lea ecx, [esi + 0x19c]
call fcn.0040102d
mov eax, dword [ebp + 0x78]
lea ecx, [esi + 0x1c4]
mov dword [esi + 0x1a4], ebx
mov dword [esi + 0x1a8], ebx
mov dword [esi + 0x1ac], ebx
mov dword [esi + 0x1b0], eax
mov byte [esi + 0x1b4], bl
mov byte [esi + 0x1b5], bl
mov byte [esi + 0x1b6], bl
mov byte [esi + 0x1b7], bl
mov byte [esi + 0x1b8], bl
mov byte [esi + 0x1b9], bl
mov dword [esi + 0x1c0], ebx
call fcn.0040102d
lea edi, [esi + 0x1d4]
mov ecx, edi
mov byte [esi + 0x1cc], 1
mov dword [esi + 0x1d0], ebx
call fcn.0040102d
mov ecx, esi
mov byte [edi + 8], bl
call fcn.0040253a
push 0x10
call fcn.004048b9
pop ecx
cmp eax, ebx
je 0x402be3
push esi
mov ecx, eax
call fcn.004058b4
jmp 0x402be5
xor eax, eax
push 4
mov dword [esi + 0xd0], eax
call fcn.004048b9
pop ecx
mov ecx, eax
cmp ecx, ebx
je 0x402c00
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
jmp 0x402c02
xor ecx, ecx
mov dword [esi + 0xd4], ecx
mov ecx, dword [esi + 0xd0]
call fcn.004058cb
mov ecx, dword [esi + 0xd0]
call fcn.00405159
test al, al
jns 0x402c8c
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
call fcn.0040102d
mov ecx, dword [esi + 0xd0]
push 0x80
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00406669
test al, al
je 0x402c8c
lea ecx, [ebp - 0x38]
call fcn.0040102d
push dword [ebp - 0x30]
lea ecx, [ebp - 0x38]
push dword [ebp - 0x2c]
call fcn.004014c3
push ecx
push ecx
lea eax, [ebp - 0x38]
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xd4]
call fcn.004075e3
push dword [ebp - 0x2c]
call fcn.004048cd
pop ecx
lea ecx, [ebp - 0x38]
call fcn.00401471
mov ecx, esi
call fcn.00401b3b
push ecx
push ecx
mov ecx, esp
push 0x40c540
call fcn.0040140d
mov ecx, dword [esi + 0xd4]
call fcn.004075a5
cmp eax, ebx
je 0x402cc5
mov eax, dword [eax + 0xc]
cmp eax, ebx
je 0x402cc5
lea ecx, [eax + 4]
call fcn.004010f4
mov dword [esi + 0x1d0], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
jne 0x402ce5
cmp dword [ebp - 0x24], 6
jb 0x402ce5
xor ebx, ebx
inc ebx
mov ecx, dword [ebp + 0x6c]
pop edi
mov byte [esi + 0xc8], bl
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408e81
add ebp, 0x70
leave
ret 8