Function at 0x4c80f0
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xed4], 0
mov byte [edi + 0xee8], 0
je 0x4c8129
mov eax, dword [edi + 0xed4]
test eax, eax
je 0x4c811f
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [edi + 0xed4], 0
cmp byte [edi + 0xe55], 0
mov ebx, dword [ebp + 0xc]
je 0x4c81ec
cmp dword [edi + 0xf1c], 0
jne 0x4c81ec
test ebx, ebx
je 0x4c81ec
movsx eax, byte [edi + 0xe45]
push eax
push ebx
call fcn.005116b0
add esp, 8
test eax, eax
jne 0x4c81ec
movsx eax, byte [edi + 0xe46]
push eax
push ebx
call fcn.005116b0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4c8182
sub ecx, ebx
jmp 0x4c8190
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c8187
sub ecx, edx
cmp byte [edi + 0xe54], 0
je 0x4c81b5
mov eax, dword [edi + 0xba0]
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [edi + 0xbc8]
add ecx, ecx
push ebx
mov eax, dword [eax + ecx*8]
push edx
sub eax, edx
push eax
jmp 0x4c81d1
mov eax, dword [ebp + 8]
sub ecx, eax
push ecx
mov ecx, dword [edi + 0xbc8]
add eax, ebx
push eax
mov eax, dword [edi + 0xba0]
add ecx, ecx
push 0
push dword [eax + ecx*8]
mov ecx, edi
call fcn.004c8040
lea ecx, [edi + 0xc44]
call fcn.00491890
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 0xbc8]
mov eax, dword [edi + 0xba0]
add ecx, ecx
push dword [eax + ecx*8 + 4]
push dword [eax + ecx*8]
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.0049eb10
mov eax, dword [edi + 0xc30]
test eax, eax
je 0x4c822a
cmp dword [eax + 0x1c8], 0xfde9
jne 0x4c822a
mov edx, 1
jmp 0x4c822c
xor edx, edx
push dword [esp + 0x2c]
mov ecx, dword [edi + 0xbc8]
push dword [esp + 0x2c]
mov eax, dword [edi + 0xba0]
push dword [edi + 0x7d4]
mov ebx, dword [ebp + 8]
push edx
push dword [edi + 0x64c]
shl ecx, 4
push ebx
push dword [ecx + eax]
lea esi, [edi + 4]
push ecx
push esi
lea ecx, [edi + 0xc44]
call fcn.00490eb0
mov eax, dword [edi]
lea ecx, [esp + 0x78]
push ecx
mov ecx, edi
call dword [eax + 0x2c]
mov ecx, dword [edi + 0xbc8]
mov eax, dword [edi + 0xba0]
add ecx, ecx
push 0
mov eax, dword [eax + ecx*8]
sub eax, ebx
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.0049eb10
push dword [esp + 0x24]
lea eax, [esp + 0x5c]
push dword [esp + 0x24]
mov ecx, esi
push eax
call fcn.0049a8b0
fld dword [esp + 0x64]
fsub dword [esp + 0x5c]
mov ebx, dword [ebp + 0xc]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fldz
fucompp
fnstsw ax
test ah, 0x44
jp 0x4c82ed
mov eax, dword [esp + 0x78]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x64], eax
mov eax, dword [edi + 0xe70]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0xe6c]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x1c], eax
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x20]
fld dword [esp + 0x80]
fld dword [esp + 0x14]
fld st(0)
fsubp st(2)
fxch st(1)
fcomp st(2)
fnstsw ax
test ah, 0x41
jp 0x4c839b
fstp st(1)
fild dword [edi + 0x810]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fadd dword [esp + 0x20]
fsub dword [esp + 0x80]
faddp st(1)
call fcn.0052af70
push eax
mov ecx, edi
call fcn.004a1370
mov ecx, edi
call fcn.0049fdc0
mov ecx, dword [edi + 0xbc8]
mov eax, dword [edi + 0xba0]
add ecx, ecx
push dword [eax + ecx*8 + 4]
push dword [eax + ecx*8]
lea eax, [esp + 0x38]
push eax
mov ecx, edi
call fcn.0049eb10
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
fld dword [esp + 0x20]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x24], eax
jmp 0x4c839d
fstp st(0)
cmp dword [edi + 0x14], 0
je 0x4c83cd
mov eax, dword [edi]
fstp st(0)
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
call dword [eax + 0x28]
fld dword [esp + 0x38]
fadd dword [esp + 0x20]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x24]
fld dword [esp + 0x20]
mov ecx, dword [edi + 0xe58]
fstp qword [esp + 0x40]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fsubr qword [esp + 0x40]
fstp dword [esp + 0x68]
fild dword [esp + 0xc]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp + 0x18]
fld dword [esp + 0x24]
fld dword [esp + 0x64]
fld st(0)
fld dword [esp + 0x18]
fld st(0)
fsubp st(2)
fxch st(1)
fcomp st(3)
fnstsw ax
fld qword [0x43fc58]
test ah, 0x41
jp 0x4c847a
fld dword [esp + 0x5c]
fld st(0)
fadd st(4)
fmulp st(2)
fxch st(1)
fcomp st(4)
fnstsw ax
test ah, 0x41
jp 0x4c8482
fxch st(3)
fsubrp st(1)
fstp dword [esp + 0x6c]
fld dword [esp + 0x6c]
fcom st(2)
fnstsw ax
fstp st(2)
test ah, 5
jp 0x4c84aa
fstp st(0)
fild dword [esp + 0xc]
fstp qword [esp + 0x40]
fld qword [esp + 0x40]
fld dword [esp + 0x5c]
fld st(0)
fsubrp st(3)
fxch st(1)
fsubrp st(2)
fxch st(1)
call fcn.0052af70
mov dword [esp + 0xc], eax
jmp 0x4c849c
fstp st(2)
fstp st(2)
fstp st(1)
jmp 0x4c8488
fstp st(2)
fstp st(2)
fstp st(0)
fstp st(0)
fild dword [edi + 0x64c]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fadd dword [esp + 0x24]
fstp dword [esp + 0x6c]
fld dword [esp + 0x64]
fld dword [esp + 0x6c]
fxch st(1)
fld dword [esp + 0x14]
fadd dword [esp + 0x68]
fstp dword [esp + 0x70]
call fcn.0052af70
fild dword [esp + 0xc]
mov esi, eax
fstp dword [esp + 0x18]
fadd dword [esp + 0x18]
call fcn.0052af70
mov dword [esp + 0x14], eax
cmp eax, esi
jl 0x4c84da
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x68]
fild dword [esp + 0x14]
sub esp, 0x10
mov ecx, esp
fstp dword [esp + 0x84]
sub esp, 0xc
mov dword [ecx], eax
mov eax, dword [esp + 0x88]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x8c]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x90]
mov dword [ecx + 0xc], eax
mov ecx, esp
mov dword [ecx], 0x43cd24
mov eax, dword [edi + 8]
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0
mov ecx, dword [edi + 0xe58]
call fcn.0049a380
mov ecx, dword [edi + 0xe58]
mov eax, dword [edi + 0x34]
mov edx, dword [ecx]
add eax, 0x940
push eax
call dword [edx + 4]
fnstcw word [esp + 0xc]
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0xe58]
fld dword [eax + 0x920]
movzx eax, word [esp + 0xc]
or eax, 0xc00
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
fldcw word [esp + 0x18]
fistp qword [esp + 0x40]
mov esi, dword [esp + 0x40]
push esi
fldcw word [esp + 0x10]
call dword [eax + 0xc]
mov ecx, dword [edi + 0xe58]
push edi
mov eax, dword [ecx]
push 0x4c8030
call dword [eax + 0x48]
test ebx, ebx
jne 0x4c8596
mov ebx, 0x408071
push ebx
lea ecx, [edi + 0xc44]
call fcn.00491360
mov ecx, dword [edi + 0xe58]
lea edx, [esp + 0x48]
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
fld dword [esp + 0x54]
fsub dword [esp + 0x4c]
call fcn.0052af70
fld dword [esp + 0x50]
fsub dword [esp + 0x48]
mov dword [esp + 0x18], eax
call fcn.0052af70
mov ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jg 0x4c85e0
mov eax, ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 0xf20]
test ecx, ecx
je 0x4c85f5
imul esi, ecx
cmp eax, esi
jl 0x4c85f5
mov dword [esp + 0x10], esi
mov ecx, dword [edi + 0xe58]
fld dword [esp + 0x20]
fstp qword [esp + 0x40]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fsubr qword [esp + 0x40]
fstp dword [esp + 0x48]
fild dword [esp + 0x10]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
mov ecx, dword [edi + 0x64c]
fadd dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
fstp dword [esp + 0x50]
fild dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fadd dword [esp + 0x24]
fild dword [esp + 0x18]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x64]
fld dword [esp + 0x1c]
fld st(0)
fsubp st(2)
fxch st(1)
fcomp st(2)
fnstsw ax
test ah, 0x41
jp 0x4c86bd
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld dword [esp + 0x24]
fld st(0)
faddp st(2)
fld dword [esp + 0x5c]
fadd dword [esp + 0x64]
fmul qword [0x43fc58]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jp 0x4c86bb
fstp st(2)
fld st(0)
fsubp st(2)
fxch st(1)
fstp dword [esp + 0x4c]
jmp 0x4c86c3
fstp st(0)
fxch st(1)
fstp dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
fadd dword [esp + 0x4c]
sub esp, 0x10
mov ecx, esp
fstp dword [esp + 0x64]
sub esp, 0xc
mov dword [ecx], eax
mov eax, dword [esp + 0x68]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x70]
mov dword [ecx + 0xc], eax
mov ecx, esp
mov dword [ecx], 0x43cd24
mov eax, dword [edi + 8]
mov dword [ecx + 4], eax
mov dword [ecx + 8], 0
mov ecx, dword [edi + 0xe58]
call fcn.0049a380
mov eax, dword [edi + 0xe58]
push 4
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0xe58]
push 0
mov eax, dword [ecx]
call dword [eax + 0x2c]
cmp dword [ebp + 8], 0
je 0x4c8739
mov ecx, edi
call fcn.004c8830
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8