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

Disassembly:
push 0xffffffffffffffff
push 0x10162f57
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 0x10049a7e
mov dword [ecx + 0x224], 0x102bfd28
jmp 0x10049a90
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 0x1004a2bd
fld1
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x1004a2bd
mov eax, dword [ecx + 0x224]
cmp dword [eax + esi*4], edx
jne 0x10049b0c
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 0x1004a2fc
mov edx, dword [esp + 0x40]
push edx
jmp 0x1004a2f4
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 0x10049b89
mov word [ecx + esi*4 + 0x22e], dx
jmp 0x10049b99
cmp ax, 3
jb 0x10049b99
mov word [ecx + esi*4 + 0x22e], 3
push 0x4e21
call fcn.100ff548
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x24], ebp
je 0x1004a26c
push 0xbb80
mov dword [esp + 0x30], 0
call fcn.100ff548
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
jne 0x10049be6
push ebp
call fcn.100ff60b
add esp, 4
lea edx, [esp + 0x3c]
push edx
jmp 0x1004a271
push 0x4e21
push 0
push ebp
call fcn.10100550
push 0xbb80
push 0
push edi
call fcn.10100550
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.10046370
add esp, 0x3c
test eax, eax
jne 0x10049c5a
push ebp
call fcn.100ff60b
push edi
call fcn.100ff60b
add esp, 8
lea eax, [esp + 0x3c]
push eax
jmp 0x1004a271
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 0x10049c98
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 0x10049cd9
lea ecx, [esp + 0x58]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
call fcn.1003ed50
add esp, 4
cmp dword [edi + 0x34], 5
jne 0x10049cc3
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x10049cc3
mov esi, dword [edi + 0x2c]
jmp 0x10049cd9
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 0x10049cf7
mov dword [esp + 0xbc], esi
push 0x1772
call fcn.100ff548
mov edi, eax
push 0x1772
mov dword [esp + 0x24], edi
call fcn.100ff548
add esp, 8
test edi, edi
mov esi, eax
mov dword [esp + 0x14], esi
je 0x1004a2a9
test esi, esi
je 0x1004a299
push 0x1772
push 0
push edi
call fcn.10100550
push 0x1772
push 0
push esi
call fcn.10100550
add esp, 0x18
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
jle 0x1004a202
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.10101330
push esi
lea eax, [esp + 0x88]
push 0x1016b6b8
push eax
call fcn.10101330
add esp, 0x18
test edi, edi
jne 0x10049e71
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 0x10049e20
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 0x10049e38
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 0x10049e50
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10049e62
jmp 0x1004a1df
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 0x10049fb7
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 0x10049f91
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10049eb3
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 0x10049ed0
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 0x10049ee4
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 0x10049f03
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 0x10049f20
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 0x10049f34
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 0x10049f51
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 0x10049f70
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10049f82
jmp 0x1004a1df
lea eax, [ebx + 8]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10049f96
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10049fa8
jmp 0x1004a1df
mov edi, dword [esi + 0x84]
add edi, ecx
add edi, eax
cmp edx, edi
jle 0x1004a0b1
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10049fd0
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 0x10049ff0
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 0x1004a004
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 0x1004a023
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 0x1004a040
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 0x1004a054
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 0x1004a071
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 0x1004a090
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004a0a2
jmp 0x1004a1df
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 0x1004a1be
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov edi, edi
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x1004a0e0
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 0x1004a100
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 0x1004a114
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 0x1004a133
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 0x1004a150
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 0x1004a164
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 0x1004a181
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 0x1004a1a0
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004a1b2
jmp 0x1004a1df
lea eax, [ebx + 8]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1004a1c3
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004a1d5
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 0x10049d60
mov esi, dword [esp + 0x1c]
cmp byte [esi], 0
je 0x1004a249
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.100ff60b
mov edx, dword [esp + 0x18]
push edx
call fcn.100ff60b
push ebp
call fcn.100ff60b
mov eax, dword [esp + 0x24]
push eax
call fcn.100ff60b
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 0x1004a30f
push edi
call fcn.100ff60b
add esp, 4
lea edx, [esp + 0x3c]
push edx
jmp 0x1004a271
test esi, esi
je 0x1004a2b6
push esi
call fcn.100ff60b
add esp, 4
lea edx, [esp + 0x3c]
push edx
jmp 0x1004a271
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 0x1004a2fc
mov ecx, dword [esp + 0x40]
push ecx
call fcn.100ee4bd
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.100ffae6
add esp, 0x94
ret