Function at 0x4024b0
Capabilities:
Check os version
Parse pe header

Disassembly:
sub esp, 0x398
push ebx
mov ecx, 0x35
push ebp
push esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14c], ecx
mov ebp, 0x64
mov eax, 0x39
mov esi, 0x4d
mov ecx, 0x2f
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x14c], eax
mov dword [esp + 0x154], ecx
mov dword [esp + 0x158], eax
mov dword [esp + 0x160], ecx
mov dword [esp + 0x164], esi
mov dword [esp + 0x188], ebp
mov dword [esp + 0xdc], ecx
mov dword [esp + 0x194], ecx
mov dword [esp + 0x1a8], ecx
mov edi, 0x6f
mov ebx, 0x20
mov edx, 0x45
mov eax, 0x65
mov esi, 0x30
mov ebp, 0x50
mov ecx, 0x72
mov dword [esp + 0x10], 0x57
mov dword [esp + 0x14], 0x69
mov dword [esp + 0x18], 0x6e
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], 0x77
mov dword [esp + 0x28], 0x73
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x5c], 0x33
mov dword [esp + 0x60], 0x2e
mov dword [esp + 0x64], 0x31
mov dword [esp + 0x50], 0x38
mov dword [esp + 0x58], edx
mov dword [esp + 0x15c], 0x38
mov dword [esp + 0x168], edx
mov dword [esp + 0x16c], 0x2d
mov dword [esp + 0x170], 0x72
mov dword [esp + 0x174], eax
mov dword [esp + 0x178], 0x6c
mov dword [esp + 0x17c], 0x61
mov dword [esp + 0x180], 0x74
mov dword [esp + 0x184], eax
mov dword [esp + 0x98], 0x4e
mov dword [esp + 0x9c], 0x54
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa4], 0x34
mov dword [esp + 0xa8], 0x2e
mov dword [esp + 0xac], esi
mov dword [esp + 0x74], 0x32
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x3c], 0x58
mov dword [esp + 0x40], ebp
mov dword [esp + 0xcc], 0x32
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd8], esi
mov dword [esp + 0xe0], 0x58
mov dword [esp + 0xe4], ebp
mov dword [esp + 0x18c], 0x4e
mov dword [esp + 0x190], 0x54
mov dword [esp + 0x198], 0x32
mov dword [esp + 0x19c], esi
mov dword [esp + 0x1a0], esi
mov dword [esp + 0x1a4], esi
mov dword [esp + 0x1ac], 0x58
mov dword [esp + 0x1b0], ebp
mov dword [esp + 0x1b4], 0x2d
mov dword [esp + 0x1b8], ecx
mov dword [esp + 0x1bc], eax
mov dword [esp + 0x1cc], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x12c], eax
mov eax, 0x73
mov dword [esp + 0x100], edi
mov dword [esp + 0x130], eax
mov dword [esp + 0x134], eax
mov eax, 0x53
mov dword [esp + 0x104], ecx
mov dword [esp + 0x1e8], eax
mov dword [esp + 0x1ec], eax
mov eax, 0x49
mov dword [esp + 0x8c], edi
mov dword [esp + 0x1fc], eax
mov dword [esp + 0x210], eax
mov dword [esp + 0x218], eax
mov eax, dword [esp + 0x3b0]
mov dword [esp + 0x120], ecx
mov dword [esp + 0x124], edi
mov dword [esp + 0x13c], edi
mov edi, 0x52
mov ecx, 0x4f
mov dword [esp + 0x1c0], 0x6c
test eax, eax
mov dword [esp + 0x1c4], 0x61
mov dword [esp + 0x1c8], 0x74
mov dword [esp + 0x1d0], 0x64
mov dword [esp + 0xb0], 0x4e
mov dword [esp + 0xb4], 0x54
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], 0x33
mov dword [esp + 0xc0], 0x2e
mov dword [esp + 0xc4], 0x35
mov dword [esp + 0xc8], 0x31
mov dword [esp + 0xe8], 0x55
mov dword [esp + 0xec], 0x6e
mov dword [esp + 0xf0], 0x73
mov dword [esp + 0xf4], 0x75
mov dword [esp + 0xf8], 0x70
mov dword [esp + 0xfc], 0x70
mov dword [esp + 0x108], 0x74
mov dword [esp + 0x110], 0x64
mov dword [esp + 0x114], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], 0x48
mov dword [esp + 0x90], 0x6d
mov dword [esp + 0x118], ebx
mov dword [esp + 0x11c], ebp
mov dword [esp + 0x128], 0x66
mov dword [esp + 0x138], 0x69
mov dword [esp + 0x140], 0x6e
mov dword [esp + 0x144], 0x61
mov dword [esp + 0x148], 0x6c
mov dword [esp + 0x1d4], ebp
mov dword [esp + 0x1d8], edi
mov dword [esp + 0x1dc], ecx
mov dword [esp + 0x1e0], 0x43
mov dword [esp + 0x1e4], edx
mov dword [esp + 0x1f0], ecx
mov dword [esp + 0x1f4], edi
mov dword [esp + 0x1f8], 0x5f
mov dword [esp + 0x200], 0x44
mov dword [esp + 0x204], edx
mov dword [esp + 0x208], 0x4e
mov dword [esp + 0x20c], 0x54
mov dword [esp + 0x214], 0x46
mov dword [esp + 0x21c], edx
mov dword [esp + 0x220], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0x28
mov dword [esp + 0x30], 0x29
mov dword [esp + 0x68], 0x78
mov dword [esp + 0x6c], 0x38
mov dword [esp + 0x70], 0x36
je 0x40296f
mov dword [eax], 0
mov eax, dword [esp + 0x3b4]
test eax, eax
je 0x402980
mov dword [eax], 1
mov edi, dword [esp + 0x3ac]
mov al, byte [0x495ffc]
lea ecx, [esp + 0x224]
mov dword [esp + 0x224], 0x94
push ecx
mov byte [edi], al
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x234]
test eax, eax
jne 0x4029e9
mov eax, dword [esp + 0x3b4]
test eax, eax
je 0x4029c3
mov dword [eax], 0
lea edx, [esp + 0x10]
push ebx
push edx
push edi
call fcn.00402420
lea eax, [esp + 0x5c]
push 0xc
push eax
push edi
call fcn.00402420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xc
cmp eax, 1
jne 0x402ab2
mov eax, dword [esp + 0x3b0]
test eax, eax
je 0x402a03
mov dword [eax], 1
mov eax, dword [esp + 0x22c]
test eax, eax
jne 0x402a34
lea ecx, [esp + 0x10]
push ebx
push ecx
push edi
call fcn.00402420
lea edx, [esp + 0x44]
push 8
push edx
push edi
call fcn.00402420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xc
cmp eax, 0xa
jne 0x402a5f
lea eax, [esp + 0x10]
push ebx
push eax
push edi
call fcn.00402420
lea ecx, [esp + 0x4c]
push 8
push ecx
push edi
call fcn.00402420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xc
cmp eax, 0x5a
push ebx
jne 0x402a8a
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00402420
lea eax, [esp + 0x54]
push 8
push eax
push edi
call fcn.00402420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xc
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.00402420
lea edx, [esp + 0x14c]
push 0x40
push edx
push edi
call fcn.00402420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xc
mov eax, dword [esp + 0x228]
cmp eax, 3
jne 0x402af8
mov eax, dword [esp + 0x3b4]
test eax, eax
je 0x402acf
mov dword [eax], 0
lea eax, [esp + 0x10]
push ebx
push eax
push edi
call fcn.00402420
lea ecx, [esp + 0xb0]
push 0x1c
push ecx
push edi
call fcn.00402420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xc
jae 0x402b34
mov eax, dword [esp + 0x3b4]
test eax, eax
je 0x402b0b
mov dword [eax], 0
lea edx, [esp + 0xe8]
push esi
push edx
push edi
call fcn.00402420
lea eax, [esp + 0x10]
push 0x1f
push eax
push edi
call fcn.00402420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xc
cmp eax, 4
jne 0x402b62
lea ecx, [esp + 0x10]
push ebx
push ecx
push edi
call fcn.00402420
lea edx, [esp + 0x98]
push 0x18
push edx
push edi
call fcn.00402420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xc
cmp eax, 5
jne 0x402cf2
mov eax, dword [esp + 0x22c]
test eax, eax
jne 0x402b8b
lea eax, [esp + 0x10]
push ebx
push eax
push edi
call fcn.00402420
lea ecx, [esp + 0x74]
push 0x10
push ecx
jmp 0x402bfa
cmp eax, 1
push ebx
jne 0x402be5
lea edx, [esp + 0x14]
push edx
push edi
call fcn.00402420
lea eax, [esp + 0x3c]
push 8
push eax
push edi
call fcn.00402420
lea ecx, [esp + 0x30c]
mov dword [esp + 0x30c], 0x9c
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x3a4]
test ah, 2
je 0x402bd9
push 0x14
lea edx, [esp + 0x88]
jmp 0x402bf9
lea eax, [esp + 0x118]
push 0x34
push eax
jmp 0x402bfa
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.00402420
push 0x1c
lea edx, [esp + 0xd0]
push edx
push edi
call fcn.00402420
mov al, byte [0x495ffc]
lea ecx, [esp + 0x1d4]
push ebp
lea edx, [esp + 0x2bc]
push ecx
push edx
mov byte [esp + 0x2c4], al
call fcn.00402420
lea eax, [esp + 0x34]
push 8
push eax
push edi
call fcn.00402420
lea ecx, [esp + 0x2b8]
push ecx
call fcn.00404a9d
mov esi, eax
add esp, 4
test esi, esi
je 0x402ccb
push ebx
push esi
call fcn.00404450
add esp, 8
test eax, eax
je 0x402c7e
sub eax, esi
push eax
push esi
push edi
call fcn.00404dd0
add esp, 0xc
lea ecx, [esp + 0x30]
push 4
push ecx
push edi
call fcn.00402420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xc
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0x3b0]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x3b0]
lea ecx, [esp + 0x34]
push ecx
push edi
call fcn.00402420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xc
lea eax, [esp + 0x68]
push 0xc
push eax
push edi
call fcn.00402420
lea ecx, [esp + 0x30]
push 4
push ecx
push edi
call fcn.00402420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xc
lea edx, [esp + 0x10]
push ebx
push edx
push edi
call fcn.00402420
lea eax, [esp + 0x18c]
push 0x48
push eax
push edi
call fcn.00402420
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret 0xc