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

Disassembly:
push 0xffffffffffffffff
push 0x10163877
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x101b734c]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b734c]
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 + 0x22c], edx
je 0x1004a4fe
mov dword [ecx + 0x228], 0x102bfd50
jmp 0x1004a510
lea eax, [ecx + 0x94]
mov dword [ecx + 0x228], eax
mov dword [ecx + 0x22c], edx
fld qword [0x1016b598]
mov esi, dword [ecx + 0x90]
fld qword [esp + 0xc8]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x1004ad3d
fld1
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x1004ad3d
mov eax, dword [ecx + 0x228]
cmp dword [eax + esi*4], edx
jne 0x1004a58c
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.10009b80
mov dword [esp + 0x20], 1
mov byte [esp + 0xa4], 0
cmp dword [esp + 0x54], 0x10
jb 0x1004ad7c
mov edx, dword [esp + 0x40]
push edx
jmp 0x1004ad74
fld qword [0x1016b968]
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 + 0x230], ax
fldcw word [esp + 0x14]
fmul qword [0x1016b9a0]
fnstcw word [esp + 0x14]
fadd qword [0x1016b958]
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 + 0x232], ax
fldcw word [esp + 0x14]
jne 0x1004a609
mov word [ecx + esi*4 + 0x232], dx
jmp 0x1004a619
cmp ax, 3
jb 0x1004a619
mov word [ecx + esi*4 + 0x232], 3
push 0x4e21
call fcn.100ffe35
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x24], ebp
je 0x1004acec
push 0xbb80
mov dword [esp + 0x30], 0
call fcn.100ffe35
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
jne 0x1004a666
push ebp
call fcn.100ffef8
add esp, 4
lea edx, [esp + 0x3c]
push edx
jmp 0x1004acf1
push 0x4e21
push 0
push ebp
call fcn.10100e30
push 0xbb80
push 0
push edi
call fcn.10100e30
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.10046d80
add esp, 0x3c
test eax, eax
jne 0x1004a6da
push ebp
call fcn.100ffef8
push edi
call fcn.100ffef8
add esp, 8
lea eax, [esp + 0x3c]
push eax
jmp 0x1004acf1
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, esi
mov esi, dword [edi + 0x1c]
call ebx
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
test esi, esi
mov dword [esp + 0x1c], eax
jne 0x1004a718
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 0x1004a759
lea ecx, [esp + 0x58]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
call fcn.1003f750
add esp, 4
cmp dword [edi + 0x38], 5
jne 0x1004a743
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x1004a743
mov esi, dword [edi + 0x30]
jmp 0x1004a759
mov esi, dword [esp + 0x60]
sub esi, dword [esp + 0x58]
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 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 0x1004a777
mov dword [esp + 0xbc], esi
push 0x1772
call fcn.100ffe35
mov edi, eax
push 0x1772
mov dword [esp + 0x24], edi
call fcn.100ffe35
add esp, 8
test edi, edi
mov esi, eax
mov dword [esp + 0x14], esi
je 0x1004ad29
test esi, esi
je 0x1004ad19
push 0x1772
push 0
push edi
call fcn.10100e30
push 0x1772
push 0
push esi
call fcn.10100e30
add esp, 0x18
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
jle 0x1004ac82
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 0x1016b6c8
push edx
mov byte [esp + 0x64], 0
call fcn.10101c10
push esi
lea eax, [esp + 0x88]
push 0x1016b6c8
push eax
call fcn.10101c10
add esp, 0x18
test edi, edi
jne 0x1004a8f1
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 0x1004a8a0
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 0x1004a8b8
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 0x1004a8d0
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004a8e2
jmp 0x1004ac5f
movzx edx, word [ebx - 0x16]
movzx eax, word [ebx - 0x12]
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x80]
add eax, edx
movzx edx, word [ebx + 2]
lea edi, [ecx + eax]
cmp edx, edi
jge 0x1004aa37
movzx ecx, word [ebx - 0x18]
movzx edx, word [ebx - 0x14]
movzx eax, word [ebx]
add ecx, edx
add ecx, dword [esi + 0x8c]
cmp eax, ecx
jle 0x1004aa11
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x1004a936
mov cx, word [0x1016b5e4]
lea eax, [esp + 0x58]
mov word [edi], cx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1004a950
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 0x1004a964
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 0x1004a983
mov dx, word [0x1016b5e4]
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 0x1004a9a0
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 0x1004a9b4
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 0x1004a9d1
mov ax, word [0x1016b58c]
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 0x1004a9f0
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004aa02
jmp 0x1004ac5f
lea eax, [ebx + 8]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1004aa16
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004aa28
jmp 0x1004ac5f
mov edi, dword [esi + 0x88]
add edi, ecx
add edi, eax
cmp edx, edi
jle 0x1004ab31
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x1004aa50
mov cx, word [0x1016b5e4]
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 0x1004aa70
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 0x1004aa84
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 0x1004aaa3
mov dx, word [0x1016b5e4]
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 0x1004aac0
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 0x1004aad4
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 0x1004aaf1
mov ax, word [0x1016b58c]
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 0x1004ab10
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004ab22
jmp 0x1004ac5f
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 + 0x8c]
jle 0x1004ac3e
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov edi, edi
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x1004ab60
mov cx, word [0x1016b5e4]
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 0x1004ab80
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 0x1004ab94
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 0x1004abb3
mov dx, word [0x1016b5e4]
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 0x1004abd0
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 0x1004abe4
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 0x1004ac01
mov ax, word [0x1016b58c]
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 0x1004ac20
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004ac32
jmp 0x1004ac5f
lea eax, [ebx + 8]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1004ac43
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1004ac55
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 0x1004a7e0
mov esi, dword [esp + 0x1c]
cmp byte [esi], 0
je 0x1004acc9
push esi
lea ecx, [esp + 0x40]
call fcn.1000a090
push 0x1016b58c
lea ecx, [esp + 0x40]
call fcn.1000a090
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x40]
call fcn.1000a090
push 0x1016b58c
lea ecx, [esp + 0x40]
call fcn.1000a090
push ebp
lea ecx, [esp + 0x40]
call fcn.1000a090
push esi
call fcn.100ffef8
mov edx, dword [esp + 0x18]
push edx
call fcn.100ffef8
push ebp
call fcn.100ffef8
mov eax, dword [esp + 0x24]
push eax
call fcn.100ffef8
add esp, 0x10
lea ecx, [esp + 0x3c]
push ecx
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.10009e60
mov dword [esp + 0x20], 1
mov byte [esp + 0xa4], 0
lea ecx, [esp + 0x3c]
call fcn.10006110
mov eax, esi
jmp 0x1004ad8f
push edi
call fcn.100ffef8
add esp, 4
lea edx, [esp + 0x3c]
push edx
jmp 0x1004acf1
test esi, esi
je 0x1004ad36
push esi
call fcn.100ffef8
add esp, 4
lea edx, [esp + 0x3c]
push edx
jmp 0x1004acf1
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.10009b80
mov dword [esp + 0x20], 1
mov byte [esp + 0xa4], 0
cmp dword [esp + 0x54], 0x10
jb 0x1004ad7c
mov ecx, dword [esp + 0x40]
push ecx
call fcn.100eedad
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.101003d3
add esp, 0x94
ret