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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [0x6ddc7c]
xor eax, esp
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0x10]
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x1c], ecx
mov ecx, eax
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x14]
sub ecx, eax
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [esp + 0x34], ecx
xor edi, edi
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
mov dword [esp + 0x10], edi
cmp esi, ecx
je 0x4fc012
mov edi, dword [esi]
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x4fbfe2
cmp byte [edi + 0x58], 0
jne 0x4fbfe2
mov ecx, dword [esp + 0x20]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x20]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x18]
mov ecx, dword [esp + 0x18]
cmp ecx, 0xffffffff
jne 0x4fbf58
mov eax, dword [edi]
inc dword [esp + 0xc]
mov edx, dword [eax + 0xc0]
cmp edx, method.ui::ButtonTemplate_class_ui::Box_.virtual_192
jne 0x4fc2a1
movups xmm0, xmmword [edi + 0xb4]
lea ecx, [esp + 0x60]
mov dword [esp + 0x14], ecx
movups xmmword [esp + 0x60], xmm0
mov eax, dword [eax + 0xc0]
cmp eax, method.ui::ButtonTemplate_class_ui::Box_.virtual_192
jne 0x4fc2b5
movups xmm0, xmmword [edi + 0xb4]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x50]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 8]
inc edi
movups xmmword [esp + 0x50], xmm0
mov eax, dword [eax + 8]
add eax, dword [ecx]
add edx, eax
mov dword [esp + 0x10], edi
mov dword [esp + 8], edx
jmp 0x4fbfea
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 8]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 8]
inc edi
add eax, dword [ecx]
add edx, eax
mov dword [esp + 0x10], edi
mov dword [esp + 8], edx
jmp 0x4fbfea
cmp ecx, dword [edi + 0x30]
cmovl ecx, dword [edi + 0x30]
mov dword [esp + 0x18], ecx
mov eax, dword [edi + 0x38]
test eax, eax
js 0x4fbf73
cmp ecx, eax
cmovg ecx, eax
mov dword [esp + 0x18], ecx
mov eax, dword [edi]
mov edx, dword [eax + 0xc0]
cmp edx, method.ui::ButtonTemplate_class_ui::Box_.virtual_192
jne 0x4fc2c3
movups xmm0, xmmword [edi + 0xb4]
lea edx, [esp + 0x70]
mov dword [esp + 0x14], edx
movups xmmword [esp + 0x70], xmm0
mov eax, dword [eax + 0xc0]
cmp eax, method.ui::ButtonTemplate_class_ui::Box_.virtual_192
jne 0x4fc2db
movups xmm0, xmmword [edi + 0xb4]
lea eax, [esp + 0x80]
movups xmmword [esp + 0x80], xmm0
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 8]
mov edi, dword [esp + 0x10]
inc edi
add eax, dword [edx]
mov edx, dword [esp + 8]
add eax, ecx
add edx, eax
mov dword [esp + 0x10], edi
mov dword [esp + 8], edx
jmp 0x4fbfea
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov eax, dword [ebp + 0xc]
add esi, 4
mov ecx, dword [eax + 4]
cmp esi, ecx
jne 0x4fbe81
mov esi, dword [eax]
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
lea eax, [edi - 1]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 0x14]
mov eax, edi
imul eax, dword [esp + 0x44]
add edx, eax
xor eax, eax
mov dword [esp + 8], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0xc], eax
jle 0x4fc053
mov eax, dword [esp + 0x20]
sub eax, edx
cdq
idiv dword [esp + 0xc]
xor edx, edx
test eax, eax
cmovs eax, edx
mov dword [esp + 0x3c], eax
imul eax, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 8]
sub dword [esp + 0xc], eax
xor eax, eax
sub dword [esp + 0xc], edx
mov dword [esp + 8], eax
cmp esi, ecx
je 0x4fc0c6
mov edi, dword [esi]
mov ecx, edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], edi
mov eax, dword [edi]
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x4fc0b0
cmp byte [edi + 0x58], 0
je 0x4fc0f0
movups xmm0, xmmword [ebp + 0x10]
sub esp, 0x10
lea ecx, [esp + 0x80]
mov eax, esp
mov edx, edi
movups xmmword [eax], xmm0
call fcn.004d8920
add esp, 0x10
mov eax, dword [esp + 8]
mov ecx, dword [ebp + 0xc]
add esi, 4
cmp esi, dword [ecx + 4]
jne 0x4fc076
mov ecx, dword [esp + 0x30]
mov edi, dword [ecx + 0x14]
imul edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
add edi, dword [esp + 0x14]
mov dword [ecx], edi
mov dword [ecx + 4], eax
mov eax, ecx
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
xor ecx, esp
call fcn.005ff7bd
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [edi]
mov eax, dword [eax + 0xc0]
cmp eax, method.ui::ButtonTemplate_class_ui::Box_.virtual_192
jne 0x4fc2f0
movups xmm0, xmmword [edi + 0xb4]
movups xmmword [esp + 0x50], xmm0
mov ecx, dword [esp + 0x20]
sub esp, 8
sub ecx, dword [esp + 0x58]
mov eax, esp
mov dword [esp + 0x28], ecx
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
lea ecx, [esp + 0x20]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x18]
mov edi, dword [esp + 0x18]
cmp edi, 0xffffffff
jne 0x4fc15c
mov ecx, dword [esp + 0x3c]
mov edi, ecx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x18], edi
test eax, eax
jle 0x4fc15c
lea edi, [ecx + 1]
dec eax
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], eax
mov edx, dword [esp + 0x2c]
cmp edi, dword [edx + 0x30]
cmovl edi, dword [edx + 0x30]
mov dword [esp + 0x18], edi
mov eax, dword [edx + 0x38]
test eax, eax
js 0x4fc17b
cmp edi, eax
cmovg edi, eax
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x40], eax
cmp ecx, 0xffffffff
jne 0x4fc196
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x5c]
sub ecx, eax
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
cmovs ecx, eax
mov dword [esp + 8], eax
mov dword [esp + 0x1c], ecx
cmp ecx, dword [edx + 0x34]
cmovl ecx, dword [edx + 0x34]
mov dword [esp + 0x1c], ecx
cmp ecx, dword [edx + 0x3c]
cmovg ecx, dword [edx + 0x3c]
mov dword [esp + 0x1c], ecx
mov eax, dword [edx + 0x54]
test eax, eax
jne 0x4fc1cc
mov eax, dword [esp + 0x40]
jmp 0x4fc201
cmp eax, 2
jne 0x4fc1e5
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
sub eax, ecx
mov dword [esp + 0x10], eax
jmp 0x4fc213
cmp eax, 1
jne 0x4fc213
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x5c]
sub eax, ecx
sub eax, dword [esp + 0x28]
add eax, dword [esp + 0x38]
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
add eax, ecx
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x50]
sub esp, 0x10
mov eax, dword [esp + 0x34]
mov edx, dword [edx]
add eax, ecx
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x74], eax
lea eax, [edi + ecx]
add eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
sub eax, dword [esp + 0x20]
movups xmm0, xmmword [esp + 0x70]
mov dword [esp + 0x18], eax
mov eax, esp
movups xmmword [eax], xmm0
call dword [edx + 0x20]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x58]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + 0x14]
add eax, edi
add eax, edx
add eax, dword [esp + 0x50]
add dword [esp + 0x24], eax
lea eax, [edi + edx]
add eax, dword [esp + 0x50]
add dword [esp + 0x14], eax
mov eax, dword [ecx + 0x14]
add eax, edi
add eax, edx
sub dword [esp + 0x20], eax
mov eax, dword [esp + 8]
cmp dword [esp + 0x48], eax
cmovg eax, dword [esp + 0x48]
mov dword [esp + 8], eax
jmp 0x4fc0b4
lea eax, [esp + 0x60]
mov ecx, edi
push eax
call edx
mov dword [esp + 0x14], eax
mov eax, dword [edi]
jmp 0x4fbef5
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
call eax
jmp 0x4fbf37
lea eax, [esp + 0x70]
mov ecx, edi
push eax
call edx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [edi]
jmp 0x4fbf9b
lea ecx, [esp + 0x80]
push ecx
mov ecx, edi
call eax
mov ecx, dword [esp + 0x18]
jmp 0x4fbfc2
lea ecx, [esp + 0x50]
push ecx
mov ecx, edi
call eax
jmp 0x4fc10f