Function at 0x1005279f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100869cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x200
push esi
push edi
mov dword [ebp - 0x3c], 0x5d6c05ba
mov dword [ebp - 0x3c], 0xffffffe6
jmp 0x100527d6
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 5
jg 0x10052a04
mov dword [ebp - 0x58], 4
mov dword [ebp - 0x140], 3
mov dword [ebp - 0x64], 0
jmp 0x10052801
mov eax, dword [ebp - 0x64]
inc eax
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 4
jge 0x10052817
mov eax, dword [ebp - 0x64]
mov dword [ebp + eax*4 - 0x1c8], 0xffffffff
jmp 0x100527fa
mov dword [ebp - 0x58], 0xffffffe8
jmp 0x10052827
mov eax, dword [ebp - 0x58]
inc eax
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xffffffee
je 0x100529ff
mov dword [ebp - 0x28], 0x34bf8f0a
mov dword [ebp - 0x1c], 0x3b1d
mov dword [ebp - 0x28], 3
jmp 0x1005284f
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x100529fa
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0x1c8]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1b0], eax
cmp dword [ebp - 0x1c], 0
ja 0x10052884
mov dword [ebp - 0xb4], 1
jmp 0x1005288b
and dword [ebp - 0xb4], 0
cmp dword [ebp - 0xb4], 0xa9bc
jge 0x100528a3
mov dword [ebp - 0x104], 1
jmp 0x100528aa
and dword [ebp - 0x104], 0
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x104], eax
jne 0x100528c7
cmp dword [ebp - 0x1c], 0
je 0x100528c7
mov dword [ebp - 0xfc], 1
jmp 0x100528ce
and dword [ebp - 0xfc], 0
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x1c8]
cmp dword [ebp - 0xfc], eax
jl 0x100528ef
mov dword [ebp - 0xe8], 1
jmp 0x100528f6
and dword [ebp - 0xe8], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [ebp + eax*4 - 0x1c8]
imul eax, dword [ebp - 0xe8]
cmp eax, 0x6aed
jg 0x1005291a
mov dword [ebp - 0x98], 1
jmp 0x10052921
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x98], eax
jge 0x10052938
mov dword [ebp - 0xd0], 1
jmp 0x1005293f
and dword [ebp - 0xd0], 0
cmp dword [ebp - 0xd0], 0x943c6fe2
jae 0x10052957
mov dword [ebp - 0xa0], 1
jmp 0x1005295e
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0xa0], eax
je 0x10052975
mov dword [ebp - 0xf8], 1
jmp 0x1005297c
and dword [ebp - 0xf8], 0
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0xf8]
imul eax, eax, 0xe6a4
cmp eax, 0xfffffffc
je 0x100529a1
xor eax, eax
inc eax
je 0x100529a1
mov dword [ebp - 0xa8], 1
jmp 0x100529a8
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x1c], 0
jmp 0x100529c4
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 3
jg 0x100529f5
mov byte [ebp - 0x22], 0
movzx eax, byte [ebp - 0x22]
test eax, eax
je 0x100529f3
push 0
push 0x1933
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
jmp 0x100529bd
jmp 0x10052848
jmp 0x10052820
jmp 0x100527cf
mov dword [ebp - 0x10], 0x43cdf98a
mov dword [ebp - 0x40], 5
mov dword [ebp - 0x120], 0x99991913
mov dword [ebp - 0x4c], 0
jmp 0x10052a2c
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 3
jge 0x10052a3f
mov eax, dword [ebp - 0x4c]
mov dword [ebp + eax*4 - 0x70], 0xc93b4e1a
jmp 0x10052a25
mov dword [ebp - 0x10], 0
jmp 0x10052a4f
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
jg 0x10052bb9
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x70]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x70]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x70]
mov dword [ebp - 0x18c], eax
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x70]
mov ecx, dword [ebp - 0x10]
imul eax, dword [ebp + ecx*4 - 0x70]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ebp + ecx*4 - 0x70]
lea eax, [eax + ecx - 8]
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ebp + ecx*4 - 0x70]
jl 0x10052ab1
mov dword [ebp - 0xd8], 1
jmp 0x10052ab8
and dword [ebp - 0xd8], 0
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x40], 2
jmp 0x10052ad1
mov eax, dword [ebp - 0x40]
dec eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jl 0x10052bb4
mov eax, dword [ebp - 0x10]
cmp dword [ebp + eax*4 - 0x70], 1
jne 0x10052af1
mov dword [ebp - 0xb0], 1
jmp 0x10052af8
and dword [ebp - 0xb0], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xb0], eax
jne 0x10052b19
mov eax, dword [ebp - 0x10]
cmp dword [ebp + eax*4 - 0x70], 0
je 0x10052b19
mov dword [ebp - 0xf0], 1
jmp 0x10052b20
and dword [ebp - 0xf0], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x70]
add eax, dword [ebp - 0xf0]
cmp eax, 0xfffffffc
je 0x10052b3e
mov dword [ebp - 0xb8], 1
jmp 0x10052b45
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x70]
imul ecx, dword [ebp - 0xb8], 0xb2b
imul ecx, ecx, 0x36f9
imul eax, ecx
mov ecx, dword [ebp - 0x40]
imul eax, dword [ebp + ecx*4 - 0x70]
cmp eax, 0x5b4d
jge 0x10052b7a
mov dword [ebp - 0xe0], 1
jmp 0x10052b81
and dword [ebp - 0xe0], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x70]
cmp dword [ebp - 0xe0], eax
je 0x10052b9c
mov dword [ebp - 0xc0], 1
jmp 0x10052ba3
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x120], eax
jmp 0x10052aca
jmp 0x10052a48
mov dword [ebp - 0x18], 0x4e1a
push 2
lea ecx, [ebp - 0x90]
call fcn.10017f3e
and dword [ebp - 4], 0
mov dword [ebp - 0xc8], 0x7525d2d9
mov dword [ebp - 0x194], 0xfffffffc
mov dword [ebp - 0x1b4], 0xcfbce008
mov dword [ebp - 0x1a0], 0xfffffff7
mov dword [ebp - 0x188], 0
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x108], 0x6bde64f
mov dword [ebp - 0x190], 0xffffffff
mov dword [ebp - 0x11c], 0x71658a60
and dword [ebp - 0x160], 0
and dword [ebp - 0x15c], 0
and dword [ebp - 0x158], 0
and dword [ebp - 0x154], 0
lea ecx, [ebp - 0x79]
call fcn.10008d23
push eax
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x1f4]
call fcn.10017feb
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x1d4]
call fcn.10017f9a
mov byte [ebp - 4], 1
mov dword [ebp - 0x130], 1
mov dword [ebp - 0x19c], 0xffffffff
mov dword [ebp - 0x128], 0xffffffff
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x198]
push eax
push 0
call fcn.10051483
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0
call fcn.10050757
pop ecx
pop ecx
mov dword [ebp - 0x18], 0
jmp 0x10052cd0
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jg 0x10052f29
mov dword [ebp - 0x74], 0x51dbd7cc
mov dword [ebp - 0x60], 0
jmp 0x10052cf1
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 4
jge 0x10052d07
mov eax, dword [ebp - 0x60]
mov dword [ebp + eax*4 - 0x17c], 0
jmp 0x10052cea
push 0x5b0
push 1
call fcn.10050757
pop ecx
pop ecx
cmp dword [ebp - 0x128], 0
jne 0x10052dce
push 4
pop eax
imul eax, eax, 3
mov esi, dword [ebp + eax - 0x17c]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x90]
call fcn.10017fdc
cmp esi, dword [eax]
jge 0x10052d4d
mov dword [ebp - 0x118], 1
jmp 0x10052d54
and dword [ebp - 0x118], 0
push 1
lea ecx, [ebp - 0x90]
call fcn.10017fdc
mov eax, dword [eax]
neg eax
cmp eax, dword [ebp - 0xc8]
je 0x10052d79
mov dword [ebp - 0x100], 1
jmp 0x10052d80
and dword [ebp - 0x100], 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x90]
call fcn.10017fdc
mov ecx, dword [ebp - 0x100]
cmp ecx, dword [eax]
je 0x10052da4
mov dword [ebp - 0x114], 1
jmp 0x10052dab
and dword [ebp - 0x114], 0
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0xc8]
cmp dword [ebp - 0x11c], eax
jne 0x10052dce
and dword [ebp - 0x84], 0
jmp 0x10052dd8
mov dword [ebp - 0x84], 1
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x17c]
cmp dword [ebp - 0x84], eax
jle 0x10052df9
mov dword [ebp - 0x94], 1
jmp 0x10052e00
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x94], eax
jne 0x10052e17
mov dword [ebp - 0x9c], 1
jmp 0x10052e1e
and dword [ebp - 0x9c], 0
cmp dword [ebp - 0x9c], 0x7a3b2fe4
jl 0x10052e36
mov dword [ebp - 0xa4], 1
jmp 0x10052e3d
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x74]
dec eax
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0xa4]
jne 0x10052e5b
mov dword [ebp - 0xac], 1
jmp 0x10052e62
and dword [ebp - 0xac], 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x90]
call fcn.10017fdc
mov ecx, dword [ebp - 0xac]
cmp ecx, dword [eax]
jne 0x10052e83
mov dword [ebp - 0x80], 1
jmp 0x10052e87
and dword [ebp - 0x80], 0
push dword [ebp - 0x18]
lea ecx, [ebp - 0x90]
call fcn.10017fdc
mov eax, dword [eax]
cmp eax, dword [ebp - 0x80]
jle 0x10052eae
mov eax, 0x95ad
test eax, eax
jne 0x10052eae
and dword [ebp - 0xbc], 0
jmp 0x10052eb8
mov dword [ebp - 0xbc], 1
push 1
lea ecx, [ebp - 0x90]
call fcn.10017fdc
mov ecx, dword [ebp - 0xbc]
imul ecx, dword [eax]
push 4
pop eax
imul eax, eax, 0
cmp ecx, dword [ebp + eax - 0x17c]
je 0x10052ee9
mov dword [ebp - 0xc4], 1
jmp 0x10052ef0
and dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0x130]
cmp dword [ebp - 0xc4], eax
jg 0x10052f0a
mov dword [ebp - 0xcc], 1
jmp 0x10052f11
and dword [ebp - 0xcc], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xcc]
mov dword [ebp + eax - 0x17c], ecx
jmp 0x10052cc9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1d4]
call fcn.10017fc0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call fcn.10017fc0
push 1
lea eax, [ebp - 0x20c]
push eax
xor edx, edx
inc edx
xor ecx, ecx
call fcn.1004ffad
pop ecx
pop ecx
mov esi, eax
lea edi, [ebp - 0x1ec]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x1ec]
lea edi, [ebp - 0x14c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x48], 0xcea5d6c0
mov dword [ebp - 0x48], 0
jmp 0x10052f8d
mov eax, dword [ebp - 0x48]
dec eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xfffffffd
jne 0x10052fc6
mov dword [ebp - 0x50], 0xeede0b40
mov dword [ebp - 0x50], 0
jmp 0x10052faa
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x1a
jl 0x10052fc4
mov byte [ebp - 0x29], 0
movzx eax, byte [ebp - 0x29]
test eax, eax
je 0x10052fc2
call dword [sym.imp.KERNEL32.dll_GetVersion]
jmp 0x10052fa3
jmp 0x10052f86
mov dword [ebp - 0x48], 0x891c5534
push 1
lea ecx, [ebp - 0x13c]
call fcn.10017f3e
mov dword [ebp - 4], 2
mov dword [ebp - 0x20], 0x3838a1f9
mov dword [ebp - 0x14], 0
jmp 0x10052ff8
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x10053014
push dword [ebp - 0x14]
lea ecx, [ebp - 0x13c]
call fcn.10017fdc
mov dword [eax], 1
jmp 0x10052ff1
mov dword [ebp - 0x14], 0
jmp 0x10053024
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x1005303a
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x1e0], 2
jmp 0x1005301d
mov dword [ebp - 0x14], 0
jmp 0x1005304a
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x10053060
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x200], 0x5d06
jmp 0x10053043
mov dword [ebp - 0x20], 0
jmp 0x10053070
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x10053098
mov byte [ebp - 0x31], 0
movzx eax, byte [ebp - 0x31]
test eax, eax
je 0x10053096
push 0x6307
push 0x22b9
push 1
call fcn.10051483
add esp, 0xc
jmp 0x10053069
mov dword [ebp - 0x20], 0
jmp 0x100530a8
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xfffffff3
jg 0x100532d5
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x5c], 0xcafe8b0d
mov dword [ebp - 0x124], 0x5466
mov dword [ebp - 0x30], 0
jmp 0x100530da
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffe2
jle 0x100532d0
mov dword [ebp - 0x38], 0
push 3
lea ecx, [ebp - 0x16c]
call fcn.10017f3e
mov byte [ebp - 4], 3
mov dword [ebp - 0x12c], 0xa9d9e177
mov dword [ebp - 0x44], 0xf7c2f5a2
mov dword [ebp - 0x54], 0
jmp 0x1005311d
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 3
jge 0x10053139
push dword [ebp - 0x54]
lea ecx, [ebp - 0x16c]
call fcn.10017fdc
mov dword [eax], 0x16f93bd5
jmp 0x10053116
mov dword [ebp - 0x38], 0
jmp 0x10053149
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jg 0x100532bc
mov dword [ebp - 0xd4], 0x9b6917ab
mov dword [ebp - 0x5c], 6
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0xd4], eax
mov esi, dword [ebp - 0xd4]
push dword [ebp - 0x38]
lea ecx, [ebp - 0x13c]
call fcn.10017fdc
cmp dword [eax], esi
je 0x10053191
mov dword [ebp - 0x78], 1
jmp 0x10053195
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x1ac], eax
push dword [ebp - 0x38]
lea ecx, [ebp - 0x13c]
call fcn.10017fdc
cmp dword [ebp - 0x30], 0x223d
jle 0x100531c7
cmp dword [ebp - 0x30], 0
je 0x100531c7
mov dword [ebp - 0xdc], 1
jmp 0x100531ce
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0xdc]
jge 0x100531e5
mov dword [ebp - 0xe4], 1
jmp 0x100531ec
and dword [ebp - 0xe4], 0
push 0
lea ecx, [ebp - 0x16c]
call fcn.10017fdc
mov ecx, dword [ebp - 0x78]
mov dword [eax], ecx
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0xe4]
jle 0x10053215
mov dword [ebp - 0xec], 1
jmp 0x1005321c
and dword [ebp - 0xec], 0
push dword [ebp - 0x38]
lea ecx, [ebp - 0x13c]
call fcn.10017fdc
mov eax, dword [eax]
add eax, dword [ebp - 0xec]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xfffffffa
jne 0x10053250
mov dword [ebp - 0xf4], 1
jmp 0x10053257
and dword [ebp - 0xf4], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x1e0]
cmp dword [ebp - 0xf4], eax
jg 0x100532a6
mov dword [ebp - 0x44], 0
jmp 0x1005327c
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jg 0x100532a4
mov dword [ebp - 0x10c], 0x6930
mov dword [ebp - 0x110], 7
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x110], eax
jmp 0x10053275
jmp 0x100532b7
mov byte [ebp - 0x21], 0
movzx eax, byte [ebp - 0x21]
test eax, eax
je 0x100532b7
call fcn.100521d5
jmp 0x10053142
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x16c]
call fcn.10017fc0
jmp 0x100530d3
jmp 0x100530a1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.10017fc0
cmp dword [ebp - 0x14c], 0
je 0x10053301
push 5
push dword [ebp - 0x144]
push dword [ebp - 0x148]
call dword [ebp - 0x14c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret