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

Disassembly:
push 0xffffffffffffffff
push 0x101747a7
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x101c8fb4]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101c8fb4]
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 + 0x224], edx
je 0x1005d05e
mov dword [ecx + 0x220], 0x102d1990
jmp 0x1005d070
lea eax, [ecx + 0x8c]
mov dword [ecx + 0x220], eax
mov dword [ecx + 0x224], edx
fld qword [0x1017bbb0]
mov esi, dword [ecx + 0x88]
fld qword [esp + 0xc8]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x1005d89d
fld1
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x1005d89d
mov eax, dword [ecx + 0x220]
cmp dword [eax + esi*4], edx
jne 0x1005d0ec
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.10003e70
mov dword [esp + 0x20], 1
mov byte [esp + 0xa4], 0
cmp dword [esp + 0x54], 0x10
jb 0x1005d8dc
mov edx, dword [esp + 0x40]
push edx
jmp 0x1005d8d4
fld qword [0x1017bb70]
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 + 0x228], ax
fldcw word [esp + 0x14]
fmul qword [0x1017bba8]
fnstcw word [esp + 0x14]
fadd qword [0x1017bb58]
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 + 0x22a], ax
fldcw word [esp + 0x14]
jne 0x1005d169
mov word [ecx + esi*4 + 0x22a], dx
jmp 0x1005d179
cmp ax, 3
jb 0x1005d179
mov word [ecx + esi*4 + 0x22a], 3
push 0x4e21
call fcn.10111579
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x24], ebp
je 0x1005d84c
push 0xbb80
mov dword [esp + 0x30], 0
call fcn.10111579
mov edi, eax
add esp, 4
test edi, edi
mov dword [esp + 0x18], edi
jne 0x1005d1c6
push ebp
call fcn.1011163c
add esp, 4
lea edx, [esp + 0x3c]
push edx
jmp 0x1005d851
push 0x4e21
push 0
push ebp
call fcn.10112240
push 0xbb80
push 0
push edi
call fcn.10112240
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.10059930
add esp, 0x3c
test eax, eax
jne 0x1005d23a
push ebp
call fcn.1011163c
push edi
call fcn.1011163c
add esp, 8
lea eax, [esp + 0x3c]
push eax
jmp 0x1005d851
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 0x1005d278
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 0x1005d2b9
lea ecx, [esp + 0x58]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
call fcn.10052340
add esp, 4
cmp dword [edi + 0x34], 5
jne 0x1005d2a3
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x1005d2a3
mov esi, dword [edi + 0x2c]
jmp 0x1005d2b9
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 0x1005d2d7
mov dword [esp + 0xbc], esi
push 0x1772
call fcn.10111579
mov edi, eax
push 0x1772
mov dword [esp + 0x24], edi
call fcn.10111579
add esp, 8
test edi, edi
mov esi, eax
mov dword [esp + 0x14], esi
je 0x1005d889
test esi, esi
je 0x1005d879
push 0x1772
push 0
push edi
call fcn.10112240
push 0x1772
push 0
push esi
call fcn.10112240
add esp, 0x18
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
jle 0x1005d7e2
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 0x1017bab8
push edx
mov byte [esp + 0x64], 0
call fcn.10112d57
push esi
lea eax, [esp + 0x88]
push 0x1017bab8
push eax
call fcn.10112d57
add esp, 0x18
test edi, edi
jne 0x1005d451
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 0x1005d400
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 0x1005d418
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 0x1005d430
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1005d442
jmp 0x1005d7bf
movzx edx, word [ebx - 0x16]
movzx eax, word [ebx - 0x12]
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x78]
add eax, edx
movzx edx, word [ebx + 2]
lea edi, [ecx + eax]
cmp edx, edi
jge 0x1005d597
movzx ecx, word [ebx - 0x18]
movzx edx, word [ebx - 0x14]
movzx eax, word [ebx]
add ecx, edx
add ecx, dword [esi + 0x84]
cmp eax, ecx
jle 0x1005d571
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x1005d493
mov cx, word [0x1017ba54]
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 0x1005d4b0
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 0x1005d4c4
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 0x1005d4e3
mov dx, word [0x1017ba54]
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 0x1005d500
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 0x1005d514
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 0x1005d531
mov ax, word [0x1017ba38]
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 0x1005d550
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1005d562
jmp 0x1005d7bf
lea eax, [ebx + 8]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1005d576
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1005d588
jmp 0x1005d7bf
mov edi, dword [esi + 0x80]
add edi, ecx
add edi, eax
cmp edx, edi
jle 0x1005d691
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x1005d5b0
mov cx, word [0x1017ba54]
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 0x1005d5d0
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 0x1005d5e4
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 0x1005d603
mov dx, word [0x1017ba54]
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 0x1005d620
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 0x1005d634
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 0x1005d651
mov ax, word [0x1017ba38]
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 0x1005d670
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1005d682
jmp 0x1005d7bf
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 + 0x84]
jle 0x1005d79e
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov edi, edi
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x1005d6c0
mov cx, word [0x1017ba54]
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 0x1005d6e0
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 0x1005d6f4
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 0x1005d713
mov dx, word [0x1017ba54]
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 0x1005d730
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 0x1005d744
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 0x1005d761
mov ax, word [0x1017ba38]
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 0x1005d780
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1005d792
jmp 0x1005d7bf
lea eax, [ebx + 8]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1005d7a3
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x1005d7b5
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 0x1005d340
mov esi, dword [esp + 0x1c]
cmp byte [esi], 0
je 0x1005d829
push esi
lea ecx, [esp + 0x40]
call fcn.10004380
push 0x1017ba38
lea ecx, [esp + 0x40]
call fcn.10004380
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x40]
call fcn.10004380
push 0x1017ba38
lea ecx, [esp + 0x40]
call fcn.10004380
push ebp
lea ecx, [esp + 0x40]
call fcn.10004380
push esi
call fcn.1011163c
mov edx, dword [esp + 0x18]
push edx
call fcn.1011163c
push ebp
call fcn.1011163c
mov eax, dword [esp + 0x24]
push eax
call fcn.1011163c
add esp, 0x10
lea ecx, [esp + 0x3c]
push ecx
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.10004150
mov dword [esp + 0x20], 1
mov byte [esp + 0xa4], 0
lea ecx, [esp + 0x3c]
call fcn.10001d10
mov eax, esi
jmp 0x1005d8ef
push edi
call fcn.1011163c
add esp, 4
lea edx, [esp + 0x3c]
push edx
jmp 0x1005d851
test esi, esi
je 0x1005d896
push esi
call fcn.1011163c
add esp, 4
lea edx, [esp + 0x3c]
push edx
jmp 0x1005d851
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.10003e70
mov dword [esp + 0x20], 1
mov byte [esp + 0xa4], 0
cmp dword [esp + 0x54], 0x10
jb 0x1005d8dc
mov ecx, dword [esp + 0x40]
push ecx
call fcn.10100548
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.10111b17
add esp, 0x94
ret