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

Disassembly:
push 0xffffffffffffffff
push 0x10162b07
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x101b629c]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b629c]
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 0x10049aae
mov dword [ecx + 0x224], 0x102beca8
jmp 0x10049ac0
lea eax, [ecx + 0x90]
mov dword [ecx + 0x224], eax
mov dword [ecx + 0x228], edx
fld qword [0x1016a978]
mov esi, dword [ecx + 0x8c]
fld qword [esp + 0xc8]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x1004a2ed
fld1
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x1004a2ed
mov eax, dword [ecx + 0x224]
cmp dword [eax + esi*4], edx
jne 0x10049b3c
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.100097c0
mov dword [esp + 0x20], 1
mov byte [esp + 0xa4], 0
cmp dword [esp + 0x54], 0x10
jb 0x1004a32c
mov edx, dword [esp + 0x40]
push edx
jmp 0x1004a324
fld qword [0x1016a938]
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 [0x1016a970]
fnstcw word [esp + 0x14]
fadd qword [0x1016a920]
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 0x10049bb9
mov word [ecx + esi*4 + 0x22e], dx
jmp 0x10049bc9
cmp ax, 3
jb 0x10049bc9
mov word [ecx + esi*4 + 0x22e], 3
push 0x4e21
call fcn.100ff166
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x24], ebp
je 0x1004a29c
push 0xbb80
mov dword [esp + 0x30], 0
call fcn.100ff166
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
jne 0x10049c16
push ebp
call fcn.100ff229
add esp, 4
lea edx, [esp + 0x3c]
push edx
jmp 0x1004a2a1
push 0x4e21
push 0
push ebp
call fcn.10100160
push 0xbb80
push 0
push edi
call fcn.10100160
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.100463a0
add esp, 0x3c
test eax, eax
jne 0x10049c8a
push ebp
call fcn.100ff229
push edi
call fcn.100ff229
add esp, 8
lea eax, [esp + 0x3c]
push eax
jmp 0x1004a2a1
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 0x10049cc8
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 0x10049d09
lea ecx, [esp + 0x58]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
call fcn.1003ed80
add esp, 4
cmp dword [edi + 0x34], 5
jne 0x10049cf3
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x10049cf3
mov esi, dword [edi + 0x2c]
jmp 0x10049d09
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 0x10049d27
mov dword [esp + 0xbc], esi
push 0x1772
call fcn.100ff166
mov edi, eax
push 0x1772
mov dword [esp + 0x24], edi
call fcn.100ff166
add esp, 8
test edi, edi
mov esi, eax
mov dword [esp + 0x14], esi
je 0x1004a2d9
test esi, esi
je 0x1004a2c9
push 0x1772
push 0
push edi
call fcn.10100160
push 0x1772
push 0
push esi
call fcn.10100160
add esp, 0x18
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
jle 0x1004a232
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 0x1016a690
push edx
mov byte [esp + 0x64], 0
call fcn.10100f40
push esi
lea eax, [esp + 0x88]
push 0x1016a690
push eax
call fcn.10100f40
add esp, 0x18
test edi, edi
jne 0x10049ea1
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 0x10049e50
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 0x10049e68
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 0x10049e80
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10049e92
jmp 0x1004a20f
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 0x10049fe7
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 0x10049fc1
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10049ee3
mov cx, word [0x1016a5a8]
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 0x10049f00
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 0x10049f14
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 0x10049f33
mov dx, word [0x1016a5a8]
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 0x10049f50
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 0x10049f64
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 0x10049f81
mov ax, word [0x1016a58c]
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 0x10049fa0
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10049fb2
jmp 0x1004a20f
lea eax, [ebx + 8]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10049fc6
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10049fd8
jmp 0x1004a20f
mov edi, dword [esi + 0x84]
add edi, ecx
add edi, eax
cmp edx, edi
jle 0x1004a0e1
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x1004a000
mov cx, word [0x1016a5a8]
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 0x1004a020
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 0x1004a034
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 0x1004a053
mov dx, word [0x1016a5a8]
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 0x1004a070
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 0x1004a084
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 0x1004a0a1
mov ax, word [0x1016a58c]
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 0x1004a0c0
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004a0d2
jmp 0x1004a20f
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 0x1004a1ee
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov edi, edi
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x1004a110
mov cx, word [0x1016a5a8]
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 0x1004a130
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 0x1004a144
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 0x1004a163
mov dx, word [0x1016a5a8]
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 0x1004a180
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 0x1004a194
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 0x1004a1b1
mov ax, word [0x1016a58c]
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 0x1004a1d0
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004a1e2
jmp 0x1004a20f
lea eax, [ebx + 8]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1004a1f3
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004a205
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 0x10049d90
mov esi, dword [esp + 0x1c]
cmp byte [esi], 0
je 0x1004a279
push esi
lea ecx, [esp + 0x40]
call fcn.10009cd0
push 0x1016a58c
lea ecx, [esp + 0x40]
call fcn.10009cd0
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x40]
call fcn.10009cd0
push 0x1016a58c
lea ecx, [esp + 0x40]
call fcn.10009cd0
push ebp
lea ecx, [esp + 0x40]
call fcn.10009cd0
push esi
call fcn.100ff229
mov edx, dword [esp + 0x18]
push edx
call fcn.100ff229
push ebp
call fcn.100ff229
mov eax, dword [esp + 0x24]
push eax
call fcn.100ff229
add esp, 0x10
lea ecx, [esp + 0x3c]
push ecx
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.10009aa0
mov dword [esp + 0x20], 1
mov byte [esp + 0xa4], 0
lea ecx, [esp + 0x3c]
call fcn.10006120
mov eax, esi
jmp 0x1004a33f
push edi
call fcn.100ff229
add esp, 4
lea edx, [esp + 0x3c]
push edx
jmp 0x1004a2a1
test esi, esi
je 0x1004a2e6
push esi
call fcn.100ff229
add esp, 4
lea edx, [esp + 0x3c]
push edx
jmp 0x1004a2a1
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.100097c0
mov dword [esp + 0x20], 1
mov byte [esp + 0xa4], 0
cmp dword [esp + 0x54], 0x10
jb 0x1004a32c
mov ecx, dword [esp + 0x40]
push ecx
call fcn.100ee0d8
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.100ff704
add esp, 0x94
ret