Function at 0x4a71d0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov byte [ebx + 0xddc], 0
cmp dword [ebx + 0xdc8], edi
je 0x4a7207
mov eax, dword [ebx + 0xdc8]
cmp eax, edi
je 0x4a7201
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebx + 0xdc8], edi
cmp byte [ebx + 0xd45], 0
je 0x4a72b7
cmp dword [ebx + 0xe10], edi
jne 0x4a72b7
mov esi, dword [ebp + 0x10]
cmp esi, edi
je 0x4a72b7
movsx eax, byte [ebx + 0xd28]
push eax
push esi
call fcn.00505410
add esp, 8
test eax, eax
jne 0x4a72b7
movsx ecx, byte [ebx + 0xd29]
push ecx
push esi
call fcn.00505410
add esp, 8
cmp eax, edi
je 0x4a7259
sub eax, esi
jmp 0x4a7269
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a7260
sub eax, edx
cmp byte [ebx + 0xd44], 0
je 0x4a7287
push eax
push esi
mov esi, dword [ebp + 0xc]
push esi
lea edi, [ebx + 0x250]
call fcn.004a39d0
sub eax, esi
jmp 0x4a729c
mov ecx, dword [ebp + 0xc]
sub eax, ecx
push eax
add ecx, esi
push ecx
push edi
lea edi, [ebx + 0x250]
call fcn.004a39d0
push eax
push ebx
call fcn.004a6ed0
lea edi, [ebx + 0xcec]
call fcn.00477aa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebx + 0x260]
sub edx, dword [ebx + 0x25c]
mov esi, dword [ebx + 0x290]
sar edx, 4
cmp esi, edx
jb 0x4a72d5
call fcn.00501daa
mov eax, dword [ebx + 0x25c]
shl esi, 4
mov ecx, dword [esi + eax + 4]
mov edx, dword [esi + eax]
push ecx
push edx
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call fcn.00484d60
mov eax, dword [ebx + 0x2c8]
cmp eax, edi
je 0x4a730e
cmp dword [eax + 0x1ec], 0xfde9
jne 0x4a730e
mov edi, 1
mov ecx, dword [ebx + 0x260]
sub ecx, dword [ebx + 0x25c]
mov esi, dword [ebx + 0x290]
sar ecx, 4
cmp esi, ecx
jb 0x4a732c
call fcn.00501daa
mov edx, dword [ebx + 0x25c]
shl esi, 4
mov eax, dword [esi + edx]
lea esi, [ebx + 0xcec]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x2c]
push esi
mov esi, dword [ebx + 0xad4]
push esi
mov esi, dword [esp + 0x24]
lea ecx, [ebx + 0x948]
push edi
mov dword [esp + 0x2c], ecx
mov ecx, dword [ecx]
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebx + 0x2d0]
push eax
push edx
call fcn.004772f0
mov edx, dword [ebx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x60]
push eax
mov ecx, ebx
call edx
mov eax, dword [ebx + 0x260]
sub eax, dword [ebx + 0x25c]
mov edi, dword [ebx + 0x290]
sar eax, 4
cmp edi, eax
jb 0x4a73a2
call fcn.00501daa
mov ecx, dword [ebx + 0x25c]
shl edi, 4
mov edi, dword [edi + ecx]
sub edi, dword [ebp + 0xc]
xor eax, eax
push eax
push edi
lea edx, [esp + 0x30]
push edx
mov ecx, ebx
call fcn.00484d60
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea edi, [esp + 0x58]
lea ecx, [ebx + 0x2d0]
call fcn.004812b0
fld dword [esp + 0x5c]
fsub dword [esp + 0x54]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcomp dword [0x556070]
fnstsw ax
test ah, 0x44
jp 0x4a7417
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov eax, dword [ebx + 0xd5c]
mov esi, dword [ebx + 0xd60]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0xc], esi
fstp dword [esp + 0x14]
fld dword [esp + 0x28]
fld dword [esp + 0x68]
fld st(0)
fld dword [esp + 0x14]
fld st(0)
fsubp st(2)
fxch st(1)
fcomp st(3)
fnstsw ax
test ah, 0x41
jp 0x4a7490
fild dword [ebx + 8]
faddp st(3)
fxch st(2)
fsubrp st(1)
faddp st(1)
call fcn.00505040
mov esi, ebx
call fcn.00486c20
mov edx, dword [ebx]
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
lea ebx, [esp + 0x30]
mov edi, esi
call fcn.00486a70
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov ebx, edi
jmp 0x4a7496
fstp st(1)
fstp st(0)
fstp st(0)
cmp dword [ebx + 0x2e0], 0
je 0x4a74c5
mov eax, dword [ebx]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call edx
fld dword [esp + 0x20]
fadd dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fadd dword [esp + 0x24]
fstp dword [esp + 0x2c]
mov ecx, dword [ebx + 0xd48]
fld dword [esp + 0x28]
mov eax, dword [ecx]
fstp qword [esp + 0x30]
mov edx, dword [eax + 0x1c]
call edx
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fsubr qword [esp + 0x30]
fstp dword [esp + 0x30]
fild dword [esp + 0xc]
fstp dword [esp + 0x20]
fld dword [esp + 0x2c]
fld dword [esp + 0x5c]
fld st(0)
fld dword [esp + 0x20]
fld st(0)
fsubp st(2)
fxch st(1)
fcomp st(3)
fnstsw ax
test ah, 0x41
jp 0x4a754e
fld dword [esp + 0x54]
fld st(0)
fadd st(3)
fmul qword [0x556030]
fcomp st(4)
fnstsw ax
test ah, 0x41
jp 0x4a754c
fxch st(3)
fsubrp st(1)
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fcom st(2)
fnstsw ax
test ah, 5
jp 0x4a7560
fsubr st(2)
call fcn.00505040
fxch st(1)
fstp dword [esp + 0x34]
sub esi, eax
jmp 0x4a7564
fstp st(1)
mov eax, dword [esp + 0x1c]
fstp st(0)
fild dword [eax]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x34]
jmp 0x4a7564
fstp st(0)
fstp st(1)
fld dword [esp + 0x14]
fadd dword [esp + 0x30]
fstp dword [esp + 0x38]
call fcn.00505040
fld dword [esp + 0x34]
mov edi, eax
call fcn.00505040
add eax, esi
cmp eax, edi
mov dword [esp + 0x14], eax
jl 0x4a758e
mov dword [esp + 0x14], edi
fild dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
sub esp, 0x10
mov eax, esp
fstp dword [esp + 0x4c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
sub esp, 0xc
mov dword [eax + 0xc], edx
mov eax, esp
mov dword [eax], vtable.Window.0
mov ecx, dword [ebx + 0x2d4]
mov dword [eax + 4], ecx
mov dword [eax + 8], 0
mov edx, dword [ebx + 0xd48]
mov dword [esp + 0x3c], esp
push edx
call fcn.00480cf0
mov ecx, dword [ebx + 0x334]
sub ecx, dword [ebx + 0x330]
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x20
ja 0x4a7608
call fcn.00501daa
mov ecx, dword [ebx + 0xd48]
mov eax, dword [ebx + 0x330]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
add eax, 0x940
push eax
call edx
mov ecx, dword [ebx + 0x334]
sub ecx, dword [ebx + 0x330]
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x20
ja 0x4a7648
call fcn.00501daa
mov ecx, dword [ebx + 0x330]
fnstcw word [esp + 0xc]
movzx eax, word [esp + 0xc]
fld dword [ecx + 0x920]
mov ecx, dword [ebx + 0xd48]
mov edx, dword [ecx]
or eax, 0xc00
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0xc]
fldcw word [esp + 0x20]
fistp qword [esp + 0x30]
mov edi, dword [esp + 0x30]
push edi
fldcw word [esp + 0x10]
call eax
mov ecx, dword [ebx + 0xd48]
mov edx, dword [ecx]
mov eax, dword [edx + 0x48]
push ebx
push 0x4a6ec0
call eax
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4a76a3
mov eax, 0x5379d8
mov esi, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.004775e0
mov ecx, dword [ebx + 0xd48]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x40]
push eax
call edx
fld dword [esp + 0x4c]
fsub dword [esp + 0x44]
call fcn.00505040
fld dword [esp + 0x48]
fsub dword [esp + 0x40]
mov dword [esp + 0x18], eax
call fcn.00505040
cmp dword [esp + 0x10], eax
jg 0x4a76e9
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xe14]
test eax, eax
je 0x4a7700
imul edi, eax
cmp dword [esp + 0x10], edi
jl 0x4a7700
mov dword [esp + 0x10], edi
mov ecx, dword [ebx + 0xd48]
fld dword [esp + 0x28]
mov eax, dword [ecx]
fstp qword [esp + 0x30]
mov edx, dword [eax + 0x1c]
call edx
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
fsubr qword [esp + 0x30]
mov dword [esp + 0x20], ecx
fstp dword [esp + 0x40]
fild dword [esp + 0x10]
fadd dword [esp + 0x40]
fstp dword [esp + 0x48]
fild dword [esp + 0x20]
fld dword [esp + 0x2c]
fld st(0)
faddp st(2)
fild dword [esp + 0x18]
fstp dword [esp + 0x20]
fld dword [esp + 0x5c]
fld st(0)
fld dword [esp + 0x20]
fld st(0)
fsubp st(2)
fxch st(1)
fcomp st(4)
fnstsw ax
test ah, 0x41
jp 0x4a779c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fadd st(3)
fld dword [esp + 0x54]
faddp st(3)
fxch st(2)
fmul qword [0x556030]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jp 0x4a77a2
fstp st(2)
fsub st(1)
fstp dword [esp + 0x44]
jmp 0x4a77aa
fstp st(2)
fstp st(0)
jmp 0x4a77a4
fstp st(1)
fxch st(1)
fstp dword [esp + 0x44]
fadd dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
sub esp, 0x10
mov eax, esp
fstp dword [esp + 0x5c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x5c]
mov dword [eax + 8], ecx
sub esp, 0xc
mov dword [eax + 0xc], edx
mov eax, esp
mov dword [eax], vtable.Window.0
mov ecx, dword [ebx + 0x2d4]
mov dword [eax + 4], ecx
mov dword [eax + 8], 0
mov edx, dword [ebx + 0xd48]
mov dword [esp + 0x3c], esp
push edx
call fcn.00480cf0
mov eax, dword [esi + 0x5c]
mov ecx, dword [eax + 4]
push 4
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x5c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
push 0
call eax
cmp dword [ebp + 0xc], 0
je 0x4a7825
mov esi, ebx
call fcn.004a7900
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc