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

Disassembly:
push 0xffffffffffffffff
push 0x1015ce59
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x101b03d4]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101b03d4]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xa8]
mov ebx, dword [esp + 0xac]
mov edi, dword [esp + 0xc0]
lea eax, [esp + 0x3c]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov edx, eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0xa0], 1
mov eax, dword [esp + 0x4c]
mov byte [eax], cl
mov dword [esp + 0xa0], 2
push edx
pop edx
mov edx, edx
mov eax, dword [ebx + 0x22c]
cmp eax, ecx
je 0x1004788c
mov dword [ebx + 0x228], 0x102b8db0
xchg ebx, eax
xchg ebx, eax
mov dword [ebx + 0x22c], eax
mov ah, ah
jmp 0x100478a2
lea edx, [ebx + 0x94]
mov dword [ebx + 0x228], edx
mov ah, ah
mov dword [ebx + 0x22c], ecx
mov ch, ch
mov dl, dl
mov esi, dword [ebx + 0x90]
xchg ebx, eax
xchg ebx, eax
fld qword [0x101654e8]
fld qword [esp + 0xc4]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x100481c3
fld1
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x100481c3
mov eax, dword [ebx + 0x228]
cmp dword [eax + esi*4], ecx
jne 0x100478f5
lea ecx, [esp + 0x3c]
fstp st(0)
push ecx
mov ecx, ebp
call fcn.10009270
jmp 0x100481d1
fld qword [0x10165888]
fnstcw word [esp + 0x1c]
movzx eax, word [esp + 0x1c]
fmul st(1)
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp dword [esp + 0x20]
mov dx, word [esp + 0x20]
mov word [ebx + esi*4 + 0x230], dx
fldcw word [esp + 0x1c]
mov bh, bh
mov dx, 0xb
fmul qword [0x101658d0]
fnstcw word [esp + 0x1c]
fadd qword [0x10165870]
movzx eax, word [esp + 0x1c]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp dword [esp + 0x20]
mov ax, word [esp + 0x20]
sub dx, ax
mov word [ebx + esi*4 + 0x232], dx
fldcw word [esp + 0x1c]
mov ch, ch
movzx eax, word [ebx + esi*4 + 0x232]
cmp ax, cx
ja 0x10047983
mov word [ebx + esi*4 + 0x232], cx
mov dl, dl
jmp 0x10047995
cmp ax, 3
jb 0x10047995
mov word [ebx + esi*4 + 0x232], 3
mov ecx, ecx
mov ch, ch
push 0x4e21
call fcn.100fab8c
mov ebp, eax
add esp, 4
mov dword [esp + 0x34], ebp
push eax
pop eax
test ebp, ebp
jne 0x100479e0
lea eax, [esp + 0x3c]
push eax
mov esi, dword [esp + 0x34]
mov ecx, esi
call fcn.10009270
mov dword [esp + 0x28], 1
mov byte [esp + 0xa0], 0
lea ecx, [esp + 0x3c]
call fcn.100068e0
mov eax, esi
jmp 0x100481ec
mov dword [esp + 0x20], 0
mov ah, ah
push 0xbb80
call fcn.100fab8c
add esp, 4
mov dword [esp + 0x2c], eax
mov edx, edx
test eax, eax
jne 0x10047a15
push ebp
call fcn.100fac4f
add esp, 4
mov ebx, ebx
xchg ebx, eax
xchg ebx, eax
lea ecx, [esp + 0x3c]
push ecx
jmp 0x100479b5
push 0x4e21
push 0
push ebp
call fcn.100fbc20
add esp, 0xc
mov bh, bh
mov edx, dword [esp + 0x2c]
push 0xbb80
push 0
push edx
call fcn.100fbc20
add esp, 0xc
mov cl, cl
mov ecx, ecx
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0xc0]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0xc0]
push edx
mov edx, dword [esp + 0xc0]
push edi
push eax
mov eax, dword [esp + 0xc4]
push ecx
push edx
push eax
push esi
lea ecx, [esp + 0x38]
mov esi, ebx
call fcn.10043690
add esp, 0x24
test eax, eax
jne 0x10047aa8
mov esi, esi
push ebp
call fcn.100fac4f
add esp, 4
mov edi, edi
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.100fac4f
add esp, 4
xchg ebx, eax
xchg ebx, eax
lea edx, [esp + 0x3c]
push edx
jmp 0x100479b5
mov esi, dword [ebx + 0x1c]
push ebx
pop ebx
mov ebp, ebp
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [esp + 0x24], eax
push edx
pop edx
mov dl, dl
nop
test esi, esi
jne 0x10047afb
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4e
call ebp
mov esi, eax
mov ch, ch
push 0x4f
call ebp
mov edi, eax
xchg ebx, eax
xchg ebx, eax
push 0x4c
call ebp
mov ebx, eax
push eax
pop eax
push 0x4d
call ebp
mov ecx, ecx
add esi, ebx
mov al, al
add edi, eax
xchg ebx, eax
xchg ebx, eax
mov ebp, dword [esp + 0x34]
jmp 0x10047b51
mov ecx, ecx
lea eax, [esp + 0x54]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov bh, bh
push esi
call fcn.1003b480
add esp, 4
mov cl, cl
cmp dword [ebx + 0x38], 5
jne 0x10047b33
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x10047b33
mov esi, dword [ebx + 0x30]
mov bh, bh
mov edi, dword [ebx + 0x34]
mov ah, ah
jmp 0x10047b51
mov esi, dword [esp + 0x5c]
sub esi, dword [esp + 0x54]
mov dh, dh
mov edi, dword [esp + 0x60]
sub edi, dword [esp + 0x58]
mov edi, edi
mov dword [ebx + 0x30], esi
mov edi, edi
mov dword [ebx + 0x34], edi
xchg ebx, eax
xchg ebx, eax
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
xchg ebx, eax
xchg ebx, eax
cmp dword [esp + 0xb8], esi
jle 0x10047b77
mov dword [esp + 0xb8], esi
push ecx
pop ecx
cmp dword [esp + 0xbc], edi
jle 0x10047b82
mov dl, dl
push 0x1772
call fcn.100fab8c
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
push ecx
pop ecx
push 0x1772
call fcn.100fab8c
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
push ebx
pop ebx
test edi, edi
je 0x100481aa
test esi, esi
je 0x10048195
push 0x1772
push 0
push edi
call fcn.100fbc20
add esp, 0xc
mov edx, edx
push 0x1772
push 0
push esi
call fcn.100fbc20
add esp, 0xc
nop
mov al, al
cmp dword [esp + 0x20], 0
mov dword [esp + 0x34], 0
jle 0x10048104
xor eax, eax
mov byte [esp + 0x54], 0
mov dword [esp + 0x55], 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 word [esp + 0x71], ax
mov byte [esp + 0x73], al
mov eax, eax
mov byte [esp + 0x74], al
mov dword [esp + 0x75], eax
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 word [esp + 0x91], ax
mov byte [esp + 0x93], al
mov edx, edx
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
lea edx, [edi + edi*2]
lea ebx, [eax + edx*8]
movzx eax, word [ebx]
add eax, dword [esp + 0x14]
xchg ebx, eax
xchg ebx, eax
movzx esi, word [ebx + 2]
add esi, dword [esp + 0x18]
mov bl, bl
mov bh, bh
mov ch, ch
push eax
lea ecx, [esp + 0x58]
push 0x101655d8
push ecx
call fcn.100fca00
add esp, 0xc
mov ecx, ecx
push esi
lea edx, [esp + 0x78]
push 0x101655d8
push edx
call fcn.100fca00
add esp, 0xc
mov ch, ch
test edi, edi
jne 0x10047d2f
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x54]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10047cc2
push ebx
pop ebx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x74]
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10047ce0
mov dh, dh
mov eax, dword [esp + 0x2c]
add eax, 8
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047cf7
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
lea esp, [esp]
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10047d10
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 dl, dl
jmp 0x100480ef
movzx edx, word [ebx - 0x16]
movzx eax, word [ebx - 0x12]
mov esi, dword [esp + 0x38]
mov ecx, dword [esi + 0x80]
add eax, edx
movzx edx, word [ebx + 2]
lea edi, [ecx + eax]
cmp edx, edi
jge 0x10047e97
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 0x10047e61
mov edi, dword [esp + 0x24]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10047d74
mov cx, word [0x101654f0]
mov word [edi], cx
push edx
pop edx
lea eax, [esp + 0x54]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047d90
mov edi, dword [esp + 0x24]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10047da4
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 eax, eax
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10047dc5
mov dx, word [0x101654f0]
mov word [edi], dx
mov ebp, ebp
lea eax, [esp + 0x74]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047de1
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 0x10047df5
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 ch, ch
mov edi, ebp
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10047e14
mov ax, word [0x101654d8]
mov word [edi], ax
mov dl, dl
lea eax, [ebx + 8]
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047e30
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10047e42
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 dh, dh
jmp 0x100480ef
lea eax, [ebx + 8]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047e66
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10047e78
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 cl, cl
jmp 0x100480ef
mov edi, dword [esi + 0x88]
add edi, ecx
add edi, eax
cmp edx, edi
jle 0x10047fa1
mov edi, dword [esp + 0x24]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10047eb0
mov cx, word [0x101654f0]
mov word [edi], cx
mov ebp, ebp
lea eax, [esp + 0x54]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047ed0
mov edi, dword [esp + 0x24]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10047ee4
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]
push edx
pop edx
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10047f05
mov dx, word [0x101654f0]
mov word [edi], dx
mov dl, dl
lea eax, [esp + 0x74]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047f21
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 0x10047f35
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 bh, bh
mov edi, ebp
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10047f54
mov ax, word [0x101654d8]
mov word [edi], ax
mov ah, ah
lea eax, [ebx + 8]
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047f70
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10047f82
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 ecx, ecx
jmp 0x100480ef
movzx ecx, word [ebx - 0x18]
movzx edx, word [ebx]
movzx eax, word [ebx - 0x14]
sub edx, ecx
sub edx, eax
sub edx, dword [esp + 0x14]
add edx, dword [esp + 0xb8]
cmp edx, dword [esi + 0x8c]
jle 0x100480be
mov edi, dword [esp + 0x24]
add edi, 0xffffffff
mov edi, edi
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10047fd0
mov cx, word [0x101654f0]
mov word [edi], cx
mov ecx, ecx
lea eax, [esp + 0x54]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047ff0
mov edi, dword [esp + 0x24]
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10048004
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 edx, edx
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10048025
mov dx, word [0x101654f0]
mov word [edi], dx
mov bh, bh
lea eax, [esp + 0x74]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10048041
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 0x10048055
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 bl, bl
mov edi, ebp
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10048074
mov ax, word [0x101654d8]
mov word [edi], ax
mov dh, dh
lea eax, [ebx + 8]
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10048090
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x100480a2
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 ebx, ebx
jmp 0x100480ef
lea eax, [ebx + 8]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x100480c3
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x100480d5
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 ch, ch
mov eax, dword [esp + 0x34]
add eax, 1
cmp eax, dword [esp + 0x20]
mov dword [esp + 0x34], eax
jl 0x10047bf4
mov esi, dword [esp + 0x24]
cmp byte [esi], 0
je 0x10048155
push esi
lea ecx, [esp + 0x40]
call fcn.10009450
mov ebx, ebx
push 0x101654d8
lea ecx, [esp + 0x40]
call fcn.10009450
mov eax, eax
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
call fcn.10009450
mov ebx, ebx
push 0x101654d8
lea ecx, [esp + 0x40]
call fcn.10009450
mov bl, bl
push ebp
lea ecx, [esp + 0x40]
call fcn.10009450
xchg ebx, eax
xchg ebx, eax
mov cl, cl
push esi
call fcn.100fac4f
add esp, 4
mov eax, eax
mov edx, dword [esp + 0x1c]
push edx
call fcn.100fac4f
add esp, 4
mov ebx, ebx
push ebp
call fcn.100fac4f
add esp, 4
mov dh, dh
mov eax, dword [esp + 0x2c]
push eax
call fcn.100fac4f
add esp, 4
mov eax, eax
lea ecx, [esp + 0x3c]
push ecx
jmp 0x100479b5
push edi
call fcn.100fac4f
add esp, 4
mov ch, ch
lea edx, [esp + 0x3c]
push edx
jmp 0x100479b5
test esi, esi
je 0x100481b9
push esi
call fcn.100fac4f
add esp, 4
push ecx
pop ecx
lea edx, [esp + 0x3c]
push edx
jmp 0x100479b5
lea eax, [esp + 0x3c]
fstp st(0)
push eax
mov ecx, ebp
call fcn.10009270
mov dword [esp + 0x28], 1
mov byte [esp + 0xa0], 0
lea ecx, [esp + 0x3c]
call fcn.100068e0
mov eax, ebp
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.100fb12a
add esp, 0x90
ret