Function at 0x4ff3c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
xor eax, eax
cmp dword [ecx + 0x5c], 0
jne 0x4ff9e2
cmp dword [ecx + 0x8c], 0
jne 0x4ff432
mov eax, dword [ecx + 4]
mov esi, ecx
mov ecx, dword [esi + 0x14]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.004fc9f0
sub esp, 8
mov ecx, esi
mov esi, ecx
call fcn.004fdd00
mov ebx, eax
mov dword [ebp - 0x8c], ebx
mov eax, 0xfffffff4
test ebx, ebx
je 0x4ff9e2
mov dword [esp], ebx
call fcn.0050b5e0
sub esp, 4
mov edi, eax
mov eax, dword [esi + 0x90]
lea ecx, [eax - 2]
cmp ecx, 2
jae 0x4ff46e
mov eax, dword [esi + 0x30]
jmp 0x4ff480
mov dword [ebp - 0x88], 0
cmp eax, 1
ja 0x4ff486
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x48]
mov dword [esp], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call sub.cvirte.dll_RectSet
sub esp, 0x14
mov dword [ebp - 0x90], 0
test edi, edi
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
jle 0x4ff8b4
add dword [ebp - 0x88], 0xfffffffc
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x94]
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x84], eax
mov dword [esp + 8], eax
lea eax, [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.0050bda0
sub esp, 0xc
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.0050b5e0
sub esp, 4
mov dword [ebp - 0x58], eax
test eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov esi, 0
jle 0x4ff5ee
mov edi, dword [ebp - 0x58]
neg edi
mov ebx, 1
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], ebx
lea ecx, [ebp - 0x10]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0050bda0
sub esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
lea eax, [ebp - 0x28]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call sub.cvirte.dll_RectSet
sub esp, 0x14
add esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x10], eax
jne 0x4ff5e4
mov eax, edi
add eax, ebx
mov eax, 1
je 0x4ff5d4
mov eax, dword [ebp - 0x60]
cmp ebx, 1
mov ecx, ebx
je 0x4ff5de
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], eax
lea eax, [edi + ebx + 1]
inc ebx
cmp eax, 1
jne 0x4ff570
mov eax, dword [ebp - 0x88]
sub eax, esi
mov ecx, dword [ebp - 0x4c]
mov ecx, dword [ecx + 0x94]
test ecx, ecx
mov edx, eax
mov esi, dword [ebp - 0x58]
js 0x4ff616
lea edx, [esi - 1]
imul ecx, edx
cmp ecx, eax
jle 0x4ff614
mov ecx, eax
mov edx, ecx
test esi, esi
jle 0x4ff896
mov dword [ebp - 0x64], 0
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0x58], 0
je 0x4ff633
sub eax, edx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], edx
mov ecx, 1
mov eax, 2
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x58], esi
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x10]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0050bda0
sub esp, 0xc
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x50], ecx
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
lea eax, [ebp - 0x28]
mov dword [esp], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x64]
cdq
idiv esi
mov edi, eax
mov dword [ebp - 0x70], edi
call sub.cvirte.dll_RectSet
sub esp, 0x14
mov eax, esi
mov esi, dword [ebp - 0x1c]
add esi, edi
mov ecx, dword [ebp - 0x7c]
sub ecx, dword [ebp - 0x20]
lea edi, [eax - 1]
xor eax, eax
test edi, edi
mov ebx, dword [ebp - 0x68]
jle 0x4ff6c0
mov eax, ebx
cdq
idiv edi
mov edx, dword [ebp - 0x70]
sub dword [ebp - 0x64], edx
sub ebx, eax
mov dword [ebp - 0x68], ebx
mov ebx, dword [ebp - 0x54]
lea edx, [esi + ebx]
add eax, edx
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x4c]
mov edi, dword [eax + 0x90]
cmp edi, 3
jbe 0x4ff700
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x34]
jmp 0x4ff770
mov eax, ecx
neg eax
jmp dword [edi*4 + 0x569004]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
jmp 0x4ff72b
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
mov ecx, dword [ebp - 0x4c]
mov ecx, dword [ecx + 0x30]
mov dword [ebp - 0x38], ecx
mov edi, esi
mov esi, ebx
jmp 0x4ff770
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp - 0x4c]
mov edi, dword [edi + 0x30]
sub edi, edx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], esi
mov edx, eax
mov eax, esi
mov esi, ecx
mov ecx, edi
mov edi, edx
jmp 0x4ff770
mov ecx, dword [ebp - 0x4c]
mov ecx, dword [ecx + 0x34]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], esi
mov edi, eax
mov eax, esi
mov esi, ecx
mov ecx, ebx
nop
nop
nop
nop
nop
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], esi
mov edx, dword [ebp - 0x50]
mov dword [edx + 0x30], ecx
mov dword [edx + 0x34], esi
mov dword [edx + 0x38], eax
mov dword [edx + 0x3c], edi
mov edx, dword [edx + 4]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x90]
mov dword [ebp - 0x54], 0
cmp esi, 3
mov ebx, 0
mov edi, 0
mov edx, 0
ja 0x4ff7cb
mov edx, dword [esi*4 + 0x536f54]
mov edi, dword [esi*4 + 0x536f44]
mov ebx, dword [esi*4 + 0x536f34]
mov esi, dword [esi*4 + 0x536f24]
mov dword [ebp - 0x54], esi
add edx, dword [ebp - 0x78]
mov dword [esp + 0x10], edx
add edi, eax
mov dword [esp + 0xc], edi
add ebx, dword [ebp - 0x74]
mov dword [esp + 8], ebx
mov eax, dword [ebp - 0x54]
add eax, ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
add eax, 0x20
mov dword [esp], eax
call sub.cvirte.dll_RectSet
sub esp, 0x14
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.cvirte.dll_RectEmpty
sub esp, 0x10
test eax, eax
mov esi, dword [ebp - 0x58]
jne 0x4ff870
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [esp + 4], ecx
mov dword [esp], eax
lea eax, [ebp - 0x48]
mov dword [esp + 0x20], eax
call sub.cvirte.dll_RectUnion
sub esp, 0x24
jmp 0x4ff888
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x6c]
inc ecx
dec esi
mov eax, dword [ebp - 0x70]
jne 0x4ff640
mov eax, dword [ebp - 0x7c]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x84]
dec eax
test eax, eax
mov ebx, dword [ebp - 0x8c]
jg 0x4ff500
mov eax, dword [ebp - 0x4c]
mov dword [eax + 0x5c], 1
mov eax, dword [ebp - 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x40]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.cvirte.dll_RectEmpty
sub esp, 0x10
test eax, eax
mov edx, 0
mov ecx, 0
mov eax, 0
mov edi, dword [ebp - 0x94]
jne 0x4ff9b0
mov eax, dword [ebp - 0x4c]
mov esi, dword [eax + 0x90]
cmp edi, 1
jne case.default.0x4ff911
cmp esi, 3
ja case.default.0x4ff911
jmp dword [esi*4 + 0x569014]
add dword [ebp - 0x40], 2
add dword [ebp - 0x48], 0xfffffffe
xor esi, esi
jmp case.default.0x4ff911
add dword [ebp - 0x40], 2
mov esi, 1
jmp case.default.0x4ff911
add dword [ebp - 0x3c], 2
add dword [ebp - 0x44], 0xfffffffe
mov esi, 2
jmp case.default.0x4ff911
add dword [ebp - 0x3c], 2
mov esi, 3
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x90], edx
mov edx, dword [ebp - 0x44]
cmp esi, 3
je 0x4ff97f
cmp esi, 2
je 0x4ff997
cmp esi, 1
ja 0x4ff9b0
cmp dword [ebp - 0x60], 0
jne 0x4ff971
add eax, 2
cmp dword [ebp - 0x5c], 0
jne 0x4ff9b0
add edx, 0xfffffffe
add eax, 2
jmp 0x4ff9b0
cmp dword [ebp - 0x60], 0
jne 0x4ff988
add ecx, 2
cmp dword [ebp - 0x5c], 0
jne 0x4ff9b0
add dword [ebp - 0x90], 0xfffffffe
jmp 0x4ff9ad
cmp dword [ebp - 0x60], 0
jne 0x4ff9a7
add dword [ebp - 0x90], 0xfffffffe
add ecx, 2
cmp dword [ebp - 0x5c], 0
jne 0x4ff9b0
add ecx, 2
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x4c]
mov dword [ebx + 0x70], esi
mov esi, dword [ebp - 0x40]
mov dword [ebx + 0x6c], esi
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x44]
mov dword [ebx + 0x68], edi
mov dword [ebx + 0x64], esi
mov esi, dword [ebp - 0x90]
mov dword [ebx + 0x74], esi
mov dword [ebx + 0x78], edx
mov dword [ebx + 0x7c], ecx
mov dword [ebx + 0x80], eax
xor eax, eax
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret