Function at 0x4870b0
Capabilities:
Check os version

Disassembly:
mov ebx, dword [esp + 0xf4]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x80]
push ecx
push edx
lea ecx, [ebp + 0xc6c]
call 0x5a83b8
mov eax, dword [0x5f9f88]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push 1
push 0
push 0x5ea478
push ecx
mov byte [esp + 0xf8], 0xe
call fcn.0047fa90
lea edx, [esp + 0x3c]
lea eax, [esp + 0x44]
push edx
push 2
push 1
push 0x5ea478
push eax
call fcn.0047fa90
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
add esp, 0x28
lea eax, [esp + 0x24]
push ebx
push ecx
push edx
push eax
mov ecx, ebp
call fcn.00487d60
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.005913ed
add esp, 8
lea ecx, [esp + 0x24]
test eax, eax
sete bl
call 0x5a970c
test bl, bl
je 0x487116
mov ecx, dword [esp + 0x3c]
lea ebx, [edi + 1]
inc ecx
cmp ebx, 0xa
mov dword [esp + 0x3c], ecx
jle 0x486ffb
push ebx
push 4
mov ecx, esi
call fcn.004ebd90
push 0
push 0
push 0xff0000
push 0xffffff
push 0x5ea618
push edi
push 0
mov ecx, esi
call fcn.004ec260
push 0
push 0
push 0xff0000
push 0xffffff
push 0x5ea618
push edi
push 1
mov ecx, esi
call fcn.004ec260
push 0
push 0
push 0xff0000
push 0xffffff
push 0x5ea618
push edi
push 2
mov ecx, esi
call fcn.004ec260
push 0
push 0
push 0xff0000
push 0xffffff
push 0x5ea618
push edi
push 3
mov ecx, esi
call fcn.004ec260
mov eax, dword [0x5f9f88]
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x58]
push ecx
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x58]
push eax
push ecx
push ecx
lea edx, [esp + 0x54]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
mov byte [esp + 0x104], 0x11
call 0x5a9481
mov ecx, ebp
call fcn.004889d0
mov eax, dword [esp + 0x20]
cmp eax, 1
jne 0x48707c
mov ecx, dword [esp + 0x70]
lea eax, [esp + 0x30]
push eax
push ecx
lea ecx, [esp + 0x70]
call 0x5a78bb
mov eax, dword [esp + 0x9c]
lea edx, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x9c]
jmp 0x4870dc
cmp eax, 2
jne fcn.004870b0
mov edx, dword [esp + 0x88]
lea ecx, [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x88]
call 0x5a78bb
mov ecx, dword [esp + 0xc4]
lea eax, [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0xc4]
jmp 0x4870dc
cmp eax, 3
jne 0x4870e1
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x5c]
call 0x5a78bb
mov edx, dword [esp + 0xb0]
lea ecx, [esp + 0x38]
push ecx
push edx
lea ecx, [esp + 0xb0]
call 0x5a78bb
lea ecx, [esp + 0x14]
mov edi, ebx
mov byte [esp + 0xe4], 0x10
call 0x5a970c
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 0xf
call 0x5a970c
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 0xe
call 0x5a970c
lea ecx, [esp + 0x28]
mov byte [esp + 0xe4], 0xd
call 0x5a970c
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 0xc
call 0x5a970c
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x486ebd
mov ecx, dword [esp + 0x70]
xor ebx, ebx
lea eax, [ecx - 1]
test eax, eax
jle 0x487265
lea edi, [ebx + 1]
cmp edi, ecx
mov dword [esp + 0x18], edi
jge 0x487258
push ebx
lea ecx, [esp + 0x6c]
call fcn.00475b30
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0x5a9481
mov ecx, ebp
call fcn.00489030
fstp qword [esp + 0x40]
push edi
lea ecx, [esp + 0x6c]
call fcn.00475b30
mov ebx, edi
lea edx, [ecx - 1]
cmp ebx, edx
jl 0x487155
mov eax, dword [esp + 0x88]
xor ebx, ebx
lea edx, [eax - 1]
inc dword [ebp + 0x258e0fd2]
add dword [eax], eax
invalid
lea edi, [ebx + 1]
cmp edi, eax
mov dword [esp + 0x18], edi
jge 0x487391
push ebx
lea ecx, [esp + 0x84]
call fcn.00475b30
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0x5a9481
mov ecx, ebp
call fcn.00489030
fstp qword [esp + 0x40]
push edi
lea ecx, [esp + 0x84]
call fcn.00475b30
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0x5a9481
mov ecx, ebp
call fcn.00489030
fld qword [esp + 0x40]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x487379
mov eax, dword [0x5f9f88]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x84]
mov byte [esp + 0xe4], 0x13
lea edx, [ecx + ebx*4]
lea ecx, [esp + 0x10]
push edx
call 0x5a9845
mov eax, dword [esp + 0x84]
lea ecx, [eax + edi*4]
push ecx
lea ecx, [eax + ebx*4]
call 0x5a9845
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x10]
push edx
lea ecx, [eax + edi*4]
call 0x5a9845
mov ecx, dword [esp + 0xc0]
lea edx, [ecx + ebx*4]
lea ecx, [esp + 0x10]
push edx
call 0x5a9845
mov eax, dword [esp + 0xc0]
lea ecx, [eax + edi*4]
push ecx
lea ecx, [eax + ebx*4]
call 0x5a9845
mov eax, dword [esp + 0xc0]
lea edx, [esp + 0x10]
push edx
lea ecx, [eax + edi*4]
call 0x5a9845
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 0xc
call 0x5a970c
mov eax, dword [esp + 0x88]
inc edi
cmp edi, eax
jl 0x487288
mov ecx, dword [esp + 0x70]
mov edi, dword [esp + 0x18]
mov ebx, edi
lea edx, [eax - 1]
cmp ebx, edx
jl 0x487279
mov edx, dword [esp + 0x5c]
xor ebx, ebx
dec edx
test edx, edx
jle 0x4874cd
mov edx, dword [esp + 0x5c]
lea edi, [ebx + 1]
cmp edi, edx
mov dword [esp + 0x18], edi
jge 0x4874be
push ebx
lea ecx, [esp + 0x58]
call fcn.00475b30
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0x5a9481
mov ecx, ebp
call fcn.00489030
fstp qword [esp + 0x40]
push edi
lea ecx, [esp + 0x58]
call fcn.00475b30
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call 0x5a9481
mov ecx, ebp
call fcn.00489030
fld qword [esp + 0x40]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x4874a2
mov eax, dword [0x5f9f88]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x58]
mov byte [esp + 0xe4], 0x14
lea edx, [ecx + ebx*4]
lea ecx, [esp + 0x10]
push edx
call 0x5a9845
mov eax, dword [esp + 0x58]
lea ecx, [eax + edi*4]
push ecx
lea ecx, [eax + ebx*4]
call 0x5a9845
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x10]
push edx
lea ecx, [eax + edi*4]
call 0x5a9845
mov ecx, dword [esp + 0xac]
lea edx, [ecx + ebx*4]
lea ecx, [esp + 0x10]
push edx
call 0x5a9845
mov eax, dword [esp + 0xac]
lea ecx, [eax + edi*4]
push ecx
lea ecx, [eax + ebx*4]
call 0x5a9845
mov eax, dword [esp + 0xac]
lea edx, [esp + 0x10]
push edx
lea ecx, [eax + edi*4]
call 0x5a9845
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 0xc
call 0x5a970c
mov eax, dword [esp + 0x5c]
inc edi
cmp edi, eax
jl 0x4873c0
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x5c]
mov ebx, edi
dec edx
cmp ebx, edx
jl 0x4873ad
xor edi, edi
test ecx, ecx
jle 0x48767e
mov bl, 0x19
mov eax, dword [0x5f9f88]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x14]
push ecx
push 2
push 1
lea eax, [edx + edi*4]
push 0x5ea478
push eax
mov byte [esp + 0xf8], 0x15
call fcn.0047fa90
mov eax, dword [0x5f9f88]
add esp, 0x14
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x50]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x60]
push edx
push eax
push edi
lea ecx, [esp + 0xb0]
mov byte [esp + 0x100], 0x18
call fcn.00475b30
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call 0x5a9481
mov ecx, ebp
call fcn.004889d0
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0xff
push 0xffffff
push ecx
push edi
push 0
mov ecx, esi
call fcn.004ec260
push 0
push 0
push 0xff
push 0xffffff
push 0x5eb618
push edi
push 1
mov ecx, esi
call fcn.004ec260
mov edx, dword [esp + 0x1c]
push 0
push 0
push 0xff
push 0xffffff
push edx
push edi
push 2
mov ecx, esi
call fcn.004ec260
lea eax, [esp + 0x10]
push 0x5ea618
lea ecx, [esp + 0x28]
push eax
push ecx
call 0x5a99a1
mov byte [esp + 0xe4], bl
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x28]
push eax
call 0x5a993b
mov eax, dword [eax]
push 0
push 0
push 0xff
push 0xffffff
push eax
push edi
push 3
mov ecx, esi
mov byte [esp + 0x100], 0x1a
call fcn.004ec260
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], bl
call 0x5a970c
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 0x18
call 0x5a970c
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 0x17
call 0x5a970c
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 0x16
call 0x5a970c
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 0x15
call 0x5a970c
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 0xc
call 0x5a970c
mov ecx, dword [esp + 0x70]
inc edi
cmp edi, ecx
jl 0x4874d9
mov eax, dword [esp + 0x88]
mov edi, ecx
xor ebx, ebx
test eax, eax
mov dword [esp + 0x28], edi
jle 0x48783a
mov ecx, dword [0x5f9f88]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x84]
lea edx, [esp + 0x10]
push edx
push 2
push 1
lea ecx, [eax + ebx*4]
push 0x5ea478
push ecx
mov byte [esp + 0xf8], 0x1b
call fcn.0047fa90
mov eax, dword [0x5f9f88]
add esp, 0x14
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
lea edx, [esp + 0x2c]
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x50]
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x60]
push eax
push ecx
push ebx
lea ecx, [esp + 0xd8]
mov byte [esp + 0x100], 0x1e
call fcn.00475b30
push ecx
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
call 0x5a9481
mov ecx, ebp
call fcn.004889d0
mov edx, dword [esp + 0x10]
push 0
push 0
push 0xff0000
push 0xffffff
push edx
push edi
push 0
mov ecx, esi
call fcn.004ec260
push 0
push 0
push 0xff0000
push 0xffffff
push 0x5eb610
push edi
push 1
mov ecx, esi
call fcn.004ec260
mov eax, dword [esp + 0x18]
push 0
push 0
push 0xff0000
push 0xffffff
push eax
push edi
push 2
mov ecx, esi
call fcn.004ec260
lea ecx, [esp + 0x1c]
push 0x5ea618
lea edx, [esp + 0x28]
push ecx
push edx
call 0x5a99a1
mov byte [esp + 0xe4], 0x1f
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push eax
push edx
call 0x5a993b
mov eax, dword [eax]
push 0
push 0
push 0xff0000
push 0xffffff
push eax
push edi
push 3
mov ecx, esi
mov byte [esp + 0x100], 0x20
call fcn.004ec260
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 0x1f
call 0x5a970c
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 0x1e
call 0x5a970c
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 0x1d
call 0x5a970c
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 0x1c
call 0x5a970c
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 0x1b
call 0x5a970c
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 0xc
call 0x5a970c
mov eax, dword [esp + 0x88]
inc ebx
inc edi
cmp ebx, eax
jl 0x48768e
mov edi, dword [esp + 0x28]
add edi, eax
mov eax, dword [esp + 0x5c]
xor ebx, ebx
test eax, eax
jle 0x4879eb
mov eax, dword [0x5f9f88]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x10]
push ecx
push 2
push 1
lea eax, [edx + ebx*4]
push 0x5ea478
push eax
mov byte [esp + 0xf8], 0x21
call fcn.0047fa90
mov eax, dword [0x5f9f88]
add esp, 0x14
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x40]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x58]
push edx
push eax
push ebx
lea ecx, [esp + 0xc4]
mov byte [esp + 0x100], 0x24
call fcn.00475b30
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push eax
call 0x5a9481
mov ecx, ebp
call fcn.004889d0
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0x808000
push 0xffffff
push ecx
push edi
push 0
mov ecx, esi
call fcn.004ec260
push 0
push 0
push 0x808000
push 0xffffff
push 0x5eb608
push edi
push 1
mov ecx, esi
call fcn.004ec260
mov edx, dword [esp + 0x18]
push 0
push 0
push 0x808000
push 0xffffff
push edx
push edi
push 2
mov ecx, esi
call fcn.004ec260
lea eax, [esp + 0x1c]
push 0x5ea618
lea ecx, [esp + 0x28]
push eax
push ecx
call 0x5a99a1
mov byte [esp + 0xe4], 0x25
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x28]
push eax
call 0x5a993b
mov eax, dword [eax]
push 0
push 0
push 0x808000
push 0xffffff
push eax
push edi
push 3
mov ecx, esi
mov byte [esp + 0x100], 0x26
call fcn.004ec260
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], 0x25
call 0x5a970c
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 0x24
call 0x5a970c
lea ecx, [esp + 0x14]
mov byte [esp + 0xe4], 0x23
call 0x5a970c
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 0x22
call 0x5a970c
lea ecx, [esp + 0x18]
mov byte [esp + 0xe4], 0x21
call 0x5a970c
lea ecx, [esp + 0x10]
mov byte [esp + 0xe4], 0xc
call 0x5a970c
mov eax, dword [esp + 0x5c]
inc ebx
inc edi
cmp ebx, eax
jl 0x48784a
lea ecx, [esp + 0xd0]
push ecx
call fcn.0058900a
lea ecx, [esp + 0xd0]
call fcn.0058905e
cmp eax, dword [esp + 0xec]
jne 0x487c7f
lea ecx, [esp + 0xd0]
call fcn.00589088
cmp eax, dword [esp + 0xf0]
jne 0x487c7f
lea ecx, [esp + 0xd0]
call fcn.005890b2
cmp eax, dword [esp + 0xf4]
jne 0x487c7f
call 0x5b9d59
mov eax, dword [eax + 4]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x74]
mov edi, eax
test edi, edi
je 0x487c7f
lea esi, [edi + 0xcc]
mov ecx, esi
call fcn.004a7120
cmp eax, 2
jle 0x487c7f
mov eax, dword [esp + 0x34]
push 0x5fe7d8
push eax
call fcn.005913ed
add esp, 8
test eax, eax
mov eax, dword [esp + 0x3c]
jne 0x487b31
test eax, eax
jne 0x487ba2
push 0xa
push ecx
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call 0x5a9481
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.00487df0
push eax
lea edx, [esp + 0x24]
mov bl, 0x29
push 0x5eb5cc
push edx
mov byte [esp + 0xf0], bl
call 0x5a9a15
mov eax, dword [eax]
mov ecx, esi
push eax
push 2
mov byte [esp + 0xec], 0x2a
call fcn.004a4f10
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], bl
call 0x5a970c
mov byte [esp + 0xe4], 0xc
lea ecx, [esp + 0x24]
jmp 0x487c69
mov ecx, dword [0x5f9f88]
mov dword [esp + 0x14], ecx
push eax
lea edx, [esp + 0x18]
push 0x5eb5c0
push edx
mov byte [esp + 0xf0], 0x2b
call 0x5a4eb4
add esp, 0xc
lea eax, [esp + 0x14]
lea edx, [esp + 0x34]
push eax
push 6
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call 0x5a9481
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
call fcn.00487df0
push eax
lea ecx, [esp + 0x2c]
push 0x5eb5ac
push ecx
mov byte [esp + 0xf4], 0x2c
call 0x5a9a15
lea edx, [esp + 0x24]
mov bl, 0x2d
push eax
push edx
mov byte [esp + 0xf0], bl
call 0x5a993b
mov eax, dword [eax]
mov ecx, esi
push eax
push 2
mov byte [esp + 0xec], 0x2e
call fcn.004a4f10
lea ecx, [esp + 0x20]
mov byte [esp + 0xe4], bl
call 0x5a970c
lea ecx, [esp + 0x24]
mov byte [esp + 0xe4], 0x2c
call 0x5a970c
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 0x2b
call 0x5a970c
mov byte [esp + 0xe4], 0xc
lea ecx, [esp + 0x14]
call 0x5a970c
mov eax, dword [edi + 0xe8]
push 1
push 0
push eax