Function at 0x10047660
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x1015989f
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x101ad3b4]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x101ad3b4]
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 + 0x20], ecx
mov edx, eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], 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
cmp dword [ebx + 0x22c], ecx
je 0x100476fc
mov dword [ebx + 0x228], 0x102b5d90
jmp 0x1004770e
lea edx, [ebx + 0x94]
mov dword [ebx + 0x228], edx
mov dword [ebx + 0x22c], ecx
fld qword [0x101615b8]
mov esi, dword [ebx + 0x90]
fld qword [esp + 0xc4]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x10047f20
fld1
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x10047f20
mov eax, dword [ebx + 0x228]
cmp dword [eax + esi*4], ecx
jne 0x1004775d
lea ecx, [esp + 0x3c]
fstp st(0)
push ecx
mov ecx, ebp
call fcn.10009b80
jmp 0x10047f2e
fld qword [0x10161970]
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]
movzx edx, word [esp + 0x18]
mov word [ebx + esi*4 + 0x230], dx
fldcw word [esp + 0x14]
fmul qword [0x101619b8]
fnstcw word [esp + 0x14]
fadd qword [0x10161958]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
mov ax, 0xb
fldcw word [esp + 0x18]
fistp dword [esp + 0x18]
movzx edx, word [esp + 0x18]
sub ax, dx
mov word [ebx + esi*4 + 0x232], ax
fldcw word [esp + 0x14]
jne 0x100477da
mov word [ebx + esi*4 + 0x232], cx
jmp 0x100477ea
cmp ax, 3
jb 0x100477ea
mov word [ebx + esi*4 + 0x232], 3
push 0x4e21
call fcn.100f5b7c
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x2c], ebp
jne 0x10047831
lea eax, [esp + 0x3c]
push eax
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.10009b80
mov dword [esp + 0x20], 1
mov byte [esp + 0xa0], 0
lea ecx, [esp + 0x3c]
call fcn.10006310
mov eax, esi
jmp 0x10047f49
push 0xbb80
mov dword [esp + 0x1c], 0
call fcn.100f5b7c
add esp, 4
test eax, eax
mov dword [esp + 0x24], eax
jne 0x1004785e
push ebp
call fcn.100f5c3f
add esp, 4
lea ecx, [esp + 0x3c]
push ecx
jmp 0x10047806
push 0x4e21
push 0
push ebp
call fcn.100f6b80
mov edx, dword [esp + 0x30]
push 0xbb80
push 0
push edx
call fcn.100f6b80
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0xd8]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0xd8]
push edx
mov edx, dword [esp + 0xd8]
push edi
push eax
mov eax, dword [esp + 0xdc]
push ecx
push edx
push eax
push esi
lea ecx, [esp + 0x70]
mov esi, ebx
call fcn.100439a0
add esp, 0x3c
test eax, eax
jne 0x100478dc
push ebp
call fcn.100f5c3f
mov ecx, dword [esp + 0x28]
push ecx
call fcn.100f5c3f
add esp, 8
lea edx, [esp + 0x3c]
push edx
jmp 0x10047806
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 0x1004791a
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 + 0x2c]
jmp 0x1004795b
lea eax, [esp + 0x54]
push eax
push esi
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
call fcn.1003c3a0
add esp, 4
cmp dword [edi + 0x38], 5
jne 0x10047945
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x10047945
mov esi, dword [edi + 0x30]
jmp 0x1004795b
mov esi, dword [esp + 0x5c]
sub esi, dword [esp + 0x54]
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], eax
mov ecx, dword [esp + 0x1c]
push ecx
call ebx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0xb8], esi
jle 0x10047979
mov dword [esp + 0xb8], esi
push 0x1772
call fcn.100f5b7c
mov edi, eax
push 0x1772
mov dword [esp + 0x24], edi
call fcn.100f5b7c
add esp, 8
test edi, edi
mov esi, eax
mov dword [esp + 0x14], esi
je 0x10047f09
test esi, esi
je 0x10047ef6
push 0x1772
push 0
push edi
call fcn.100f6b80
push 0x1772
push 0
push esi
call fcn.100f6b80
add esp, 0x18
cmp dword [esp + 0x18], 0
mov dword [esp + 0x2c], 0
jle 0x10047e82
lea esp, [esp]
mov edi, dword [esp + 0x2c]
xor eax, eax
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 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 eax, dword [esp + 0x24]
lea edx, [edi + edi*2]
movzx esi, word [eax + edx*8 + 2]
add esi, dword [esp + 0x38]
lea ebx, [eax + edx*8]
movzx eax, word [ebx]
add eax, dword [esp + 0x34]
lea ecx, [esp + 0x54]
push eax
push 0x101616c0
push ecx
mov byte [esp + 0x60], 0
call fcn.100f7960
push esi
lea edx, [esp + 0x84]
push 0x101616c0
push edx
call fcn.100f7960
add esp, 0x18
test edi, edi
jne 0x10047af1
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x54]
mov ecx, eax
sub edx, ecx
jmp 0x10047aa0
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10047aa0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x74]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x10047ab8
mov eax, dword [esp + 0x24]
add eax, 8
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047ad0
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10047ae2
jmp 0x10047e5f
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 0x10047c37
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 0x10047c11
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10047b36
mov cx, word [0x101615d8]
lea eax, [esp + 0x54]
mov word [edi], cx
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047b50
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 0x10047b64
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 0x10047b83
mov dx, word [0x101615d8]
lea eax, [esp + 0x74]
mov word [edi], dx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047ba0
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 0x10047bb4
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 0x10047bd1
mov ax, word [0x101615a8]
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 0x10047bf0
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10047c02
jmp 0x10047e5f
lea eax, [ebx + 8]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047c16
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10047c28
jmp 0x10047e5f
mov edi, dword [esi + 0x88]
add edi, ecx
add edi, eax
cmp edx, edi
jle 0x10047d31
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10047c50
mov cx, word [0x101615d8]
lea eax, [esp + 0x54]
mov word [edi], cx
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047c70
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 0x10047c84
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 0x10047ca3
mov dx, word [0x101615d8]
lea eax, [esp + 0x74]
mov word [edi], dx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047cc0
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 0x10047cd4
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 0x10047cf1
mov ax, word [0x101615a8]
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 0x10047d10
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10047d22
jmp 0x10047e5f
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 + 0xb8]
cmp edx, dword [esi + 0x8c]
jle 0x10047e3e
mov edi, dword [esp + 0x1c]
add edi, 0xffffffff
mov edi, edi
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x10047d60
mov cx, word [0x101615d8]
lea eax, [esp + 0x54]
mov word [edi], cx
mov ecx, eax
lea ebx, [ebx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047d80
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 0x10047d94
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 0x10047db3
mov dx, word [0x101615d8]
lea eax, [esp + 0x74]
mov word [edi], dx
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047dd0
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 0x10047de4
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 0x10047e01
mov ax, word [0x101615a8]
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 0x10047e20
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10047e32
jmp 0x10047e5f
lea eax, [ebx + 8]
mov ecx, eax
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x10047e43
mov edi, ebp
sub eax, ecx
mov esi, ecx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x10047e55
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x2c]
add eax, 1
and ecx, 3
cmp eax, dword [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x2c], eax
jl 0x100479e0
mov esi, dword [esp + 0x1c]
cmp byte [esi], 0
je 0x10047ec9
push esi
lea ecx, [esp + 0x40]
call fcn.10009d60
push 0x101615a8
lea ecx, [esp + 0x40]
call fcn.10009d60
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x40]
call fcn.10009d60
push 0x101615a8
lea ecx, [esp + 0x40]
call fcn.10009d60
push ebp
lea ecx, [esp + 0x40]
call fcn.10009d60
push esi
call fcn.100f5c3f
mov edx, dword [esp + 0x18]
push edx
call fcn.100f5c3f
push ebp
call fcn.100f5c3f
mov eax, dword [esp + 0x30]
push eax
call fcn.100f5c3f
add esp, 0x10
lea ecx, [esp + 0x3c]
push ecx
jmp 0x10047806
push edi
call fcn.100f5c3f
add esp, 4
lea edx, [esp + 0x3c]
push edx
jmp 0x10047806
test esi, esi
je 0x10047f16
push esi
call fcn.100f5c3f
add esp, 4
lea edx, [esp + 0x3c]
push edx
jmp 0x10047806
lea eax, [esp + 0x3c]
fstp st(0)
push eax
mov ecx, ebp
call fcn.10009b80
mov dword [esp + 0x20], 1
mov byte [esp + 0xa0], 0
lea ecx, [esp + 0x3c]
call fcn.10006310
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.100f611a
add esp, 0x90
ret