Function at 0x100499c0
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x10162e67
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x101b7324]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b7324]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xac]
mov ecx, dword [esp + 0xb0]
mov ebx, dword [esp + 0xc4]
xor edx, edx
mov dword [esp + 0x20], edx
mov edi, 0xf
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edx
mov byte [esp + 0x40], dl
mov dword [esp + 0xa4], 1
cmp dword [ecx + 0x228], edx
je 0x10049a4e
mov dword [ecx + 0x224], 0x102bfd28
jmp 0x10049a60
lea eax, [ecx + 0x90]
mov dword [ecx + 0x224], eax
mov dword [ecx + 0x228], edx
fld qword [0x1016b9a0]
mov esi, dword [ecx + 0x8c]
fld qword [esp + 0xc8]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x1004a28d
fld1
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x1004a28d
mov eax, dword [ecx + 0x224]
cmp dword [eax + esi*4], edx
jne 0x10049adc
push 0xffffffffffffffff
fstp st(0)
push edx
lea ecx, [esp + 0x44]
push ecx
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], edx
mov ecx, ebp
mov byte [ebp + 4], 0
call fcn.10009790
mov dword [esp + 0x20], 1
mov byte [esp + 0xa4], 0
cmp dword [esp + 0x54], 0x10
jb 0x1004a2cc
mov edx, dword [esp + 0x40]
push edx
jmp 0x1004a2c4
fld qword [0x1016b960]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
fmul st(1)
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
mov ax, word [esp + 0x18]
mov word [ecx + esi*4 + 0x22c], ax
fldcw word [esp + 0x14]
fmul qword [0x1016b998]
fnstcw word [esp + 0x14]
fadd qword [0x1016b948]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
mov ax, 0xb
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
mov di, word [esp + 0x18]
sub ax, di
mov word [ecx + esi*4 + 0x22e], ax
fldcw word [esp + 0x14]
jne 0x10049b59
mov word [ecx + esi*4 + 0x22e], dx
jmp 0x10049b69
cmp ax, 3
jb 0x10049b69
mov word [ecx + esi*4 + 0x22e], 3
push 0x4e21
call fcn.100ff4c8
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x24], ebp
je 0x1004a23c
push 0xbb80
mov dword [esp + 0x30], 0
call fcn.100ff4c8
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
jne 0x10049bb6
push ebp
call fcn.100ff58b
add esp, 4
lea edx, [esp + 0x3c]
push edx
jmp 0x1004a241
push 0x4e21
push 0
push ebp
call fcn.101004d0
push 0xbb80
push 0
push edi
call fcn.101004d0
mov edx, dword [esp + 0xd8]
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0xd8]
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0xd8]
push edi
push ebx
push edx
mov edx, dword [esp + 0xe0]
push eax
push ecx
push edx
push esi
mov esi, dword [esp + 0x6c]
lea ecx, [esp + 0x70]
call fcn.10046340
add esp, 0x3c
test eax, eax
jne 0x10049c2a
push ebp
call fcn.100ff58b
push edi
call fcn.100ff58b
add esp, 8
lea eax, [esp + 0x3c]
push eax
jmp 0x1004a241
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, esi
mov esi, dword [edi + 0x18]
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
test esi, esi
mov dword [esp + 0x1c], eax
jne 0x10049c68
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4e
call edi
push 0x4f
mov esi, eax
call edi
push 0x4c
call edi
push 0x4d
mov ebp, eax
call edi
add esi, ebp
mov ebp, dword [esp + 0x24]
jmp 0x10049ca9
lea ecx, [esp + 0x58]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
call fcn.1003ed20
add esp, 4
cmp dword [edi + 0x34], 5
jne 0x10049c93
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x10049c93
mov esi, dword [edi + 0x2c]
jmp 0x10049ca9
mov esi, dword [esp + 0x60]
sub esi, dword [esp + 0x58]
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
mov dword [edi + 0x2c], esi
mov dword [edi + 0x30], eax
mov edx, dword [esp + 0x1c]
push edx
call ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0xbc], esi
jle 0x10049cc7
mov dword [esp + 0xbc], esi
push 0x1772
call fcn.100ff4c8
mov edi, eax
push 0x1772
mov dword [esp + 0x24], edi
call fcn.100ff4c8
add esp, 8
test edi, edi
mov esi, eax
mov dword [esp + 0x14], esi
je 0x1004a279
test esi, esi
je 0x1004a269
push 0x1772
push 0
push edi
call fcn.101004d0
push 0x1772
push 0
push esi
call fcn.101004d0
add esp, 0x18
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
jle 0x1004a1d2
lea ebx, [ebx]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov word [esp + 0x75], ax
mov byte [esp + 0x77], al
mov byte [esp + 0x78], al
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov dword [esp + 0x8d], eax
mov dword [esp + 0x91], eax
mov word [esp + 0x95], ax
mov byte [esp + 0x97], al
lea eax, [edi + edi*2]
movzx esi, word [ecx + eax*8 + 2]
add esi, dword [esp + 0x38]
lea ebx, [ecx + eax*8]
movzx eax, word [ebx]
add eax, dword [esp + 0x34]
lea edx, [esp + 0x58]
push eax
push 0x1016b6b8
push edx
mov byte [esp + 0x64], 0
call fcn.101012b0
push esi
lea eax, [esp + 0x88]
push 0x1016b6b8
push eax
call fcn.101012b0
add esp, 0x18
test edi, edi
jne 0x10049e41
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x58]
mov ecx, eax
sub edx, ecx
mov edi, edi
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x10049df0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x78]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [eax + edx], cl
add eax, 1
test cl, cl
jne 0x10049e08
mov eax, dword [esp + 0x18]
add eax, 8
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10049e20
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10049e32
jmp 0x1004a1af
movzx edx, word [ebx - 0x16]
movzx eax, word [ebx - 0x12]
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x7c]
add eax, edx
movzx edx, word [ebx + 2]
lea edi, [ecx + eax]
cmp edx, edi
jge 0x10049f87
movzx ecx, word [ebx - 0x18]
movzx edx, word [ebx - 0x14]
movzx eax, word [ebx]
add ecx, edx
add ecx, dword [esi + 0x88]
cmp eax, ecx
jle 0x10049f61
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10049e83
mov cx, word [0x1016b5d0]
lea eax, [esp + 0x58]
mov word [edi], cx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10049ea0
mov edi, dword [esp + 0x1c]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10049eb4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10049ed3
mov dx, word [0x1016b5d0]
lea eax, [esp + 0x78]
mov word [edi], dx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10049ef0
mov edi, dword [esp + 0x14]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10049f04
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10049f21
mov ax, word [0x1016b5b4]
mov word [edi], ax
lea eax, [ebx + 8]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10049f40
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10049f52
jmp 0x1004a1af
lea eax, [ebx + 8]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10049f66
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10049f78
jmp 0x1004a1af
mov edi, dword [esi + 0x84]
add edi, ecx
add edi, eax
cmp edx, edi
jle 0x1004a081
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10049fa0
mov cx, word [0x1016b5d0]
lea eax, [esp + 0x58]
mov word [edi], cx
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10049fc0
mov edi, dword [esp + 0x1c]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10049fd4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10049ff3
mov dx, word [0x1016b5d0]
lea eax, [esp + 0x78]
mov word [edi], dx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1004a010
mov edi, dword [esp + 0x14]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004a024
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x1004a041
mov ax, word [0x1016b5b4]
mov word [edi], ax
lea eax, [ebx + 8]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1004a060
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004a072
jmp 0x1004a1af
movzx ecx, word [ebx - 0x18]
movzx edx, word [ebx]
movzx eax, word [ebx - 0x14]
sub edx, ecx
sub edx, eax
sub edx, dword [esp + 0x34]
add edx, dword [esp + 0xbc]
cmp edx, dword [esi + 0x88]
jle 0x1004a18e
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov edi, edi
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x1004a0b0
mov cx, word [0x1016b5d0]
lea eax, [esp + 0x58]
mov word [edi], cx
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1004a0d0
mov edi, dword [esp + 0x1c]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004a0e4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x1004a103
mov dx, word [0x1016b5d0]
lea eax, [esp + 0x78]
mov word [edi], dx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1004a120
mov edi, dword [esp + 0x14]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004a134
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x1004a151
mov ax, word [0x1016b5b4]
mov word [edi], ax
lea eax, [ebx + 8]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1004a170
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004a182
jmp 0x1004a1af
lea eax, [ebx + 8]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1004a193
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004a1a5
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x24]
add eax, 1
and ecx, 3
cmp eax, dword [esp + 0x2c]
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x24], eax
jl 0x10049d30
mov esi, dword [esp + 0x1c]
cmp byte [esi], 0
je 0x1004a219
push esi
lea ecx, [esp + 0x40]
call fcn.10009ca0
push 0x1016b5b4
lea ecx, [esp + 0x40]
call fcn.10009ca0
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x40]
call fcn.10009ca0
push 0x1016b5b4
lea ecx, [esp + 0x40]
call fcn.10009ca0
push ebp
lea ecx, [esp + 0x40]
call fcn.10009ca0
push esi
call fcn.100ff58b
mov edx, dword [esp + 0x18]
push edx
call fcn.100ff58b
push ebp
call fcn.100ff58b
mov eax, dword [esp + 0x24]
push eax
call fcn.100ff58b
add esp, 0x10
lea ecx, [esp + 0x3c]
push ecx
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.10009a70
mov dword [esp + 0x20], 1
mov byte [esp + 0xa4], 0
lea ecx, [esp + 0x3c]
call fcn.10006120
mov eax, esi
jmp 0x1004a2df
push edi
call fcn.100ff58b
add esp, 4
lea edx, [esp + 0x3c]
push edx
jmp 0x1004a241
test esi, esi
je 0x1004a286
push esi
call fcn.100ff58b
add esp, 4
lea edx, [esp + 0x3c]
push edx
jmp 0x1004a241
push 0xffffffffffffffff
fstp st(0)
push edx
lea eax, [esp + 0x44]
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], edx
push eax
mov ecx, ebp
mov byte [ebp + 4], 0
call fcn.10009790
mov dword [esp + 0x20], 1
mov byte [esp + 0xa4], 0
cmp dword [esp + 0x54], 0x10
jb 0x1004a2cc
mov ecx, dword [esp + 0x40]
push ecx
call fcn.100ee438
add esp, 4
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
mov eax, ebp
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.100ffa66
add esp, 0x94
ret