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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f41d1
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x58bd90]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add eax, 4
push eax
call fcn.00405b90
xor esi, esi
mov dword [esp + 0x54], vtable.DSUtil::FilterTemplates.0
mov dword [esp + 0x58], vtable.CArray_class_DSUtil::FilterTemplate__class_DSUtil::FilterTemplate_const__.0
mov dword [esp + 0x5c], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x78], esi
lea eax, [esp + 0x58]
push eax
call fcn.00405b90
mov dword [esp + 0x78], 1
mov ecx, dword [0x554ea8]
mov edx, dword [0x554eac]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x554eb0]
mov dword [eax + 4], edx
mov edx, dword [0x554eb4]
mov dword [eax + 8], ecx
lea edi, [esp + 0x64]
mov dword [eax + 0xc], edx
call fcn.00487360
mov ecx, dword [esp + 0x60]
xor eax, eax
mov dword [esp + 0x2c], eax
cmp ecx, esi
jle 0x487c21
mov dword [esp + 0x28], esi
test eax, eax
js 0x487eee
cmp eax, ecx
jge 0x487eee
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x5c]
xor ecx, ecx
mov edx, dword [eax + 0x48]
mov dword [esp + 0x20], eax
mov byte [esp + 0x16], 0
mov byte [esp + 0x17], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], edx
test edx, edx
jle 0x487b08
mov dword [esp + 0x24], ecx
test ecx, ecx
js 0x487eee
cmp ecx, dword [eax + 0x48]
jge 0x487eee
mov esi, dword [eax + 0x44]
add esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp dword [esi + 0x10], ebx
jle 0x487aeb
xor edi, edi
test ebx, ebx
js 0x487eee
cmp ebx, dword [esi + 0x1c]
jge 0x487eee
mov eax, dword [esi + 0x18]
add eax, edi
push 0x554a88
push eax
call fcn.004052b0
add esp, 8
test eax, eax
je 0x487aca
cmp ebx, dword [esi + 0x30]
jge 0x487eee
mov eax, dword [esi + 0x2c]
mov edx, dword [eax + edi]
mov ecx, dword [eax + edi + 4]
add eax, edi
mov dword [esp + 0x34], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
mov eax, 0x10
mov ecx, 0x554d98
lea edx, [esp + 0x34]
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x487a6a
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x487a54
jmp 0x487aca
movzx eax, bl
movzx ebx, byte [ecx]
sub eax, ebx
jne 0x487a96
movzx eax, byte [edx + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x487a96
movzx eax, byte [edx + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x487a96
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
je 0x487aca
lea edx, [esp + 0x34]
push 0x554da8
push edx
call fcn.004052b0
add esp, 8
test eax, eax
jne 0x487aca
lea eax, [esp + 0x34]
push 0x54cfd4
push eax
call fcn.004052b0
add esp, 8
test eax, eax
je 0x487aff
mov ebx, dword [esp + 0x1c]
inc ebx
add edi, 0x10
mov dword [esp + 0x1c], ebx
cmp ebx, dword [esi + 0x10]
jl 0x4879ef
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
add dword [esp + 0x24], 0x3c
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, edx
jl 0x4879c6
jmp 0x487b08
mov eax, dword [esp + 0x20]
mov byte [esp + 0x16], 1
mov edx, dword [eax + 0x5c]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], edx
cmp edx, ecx
jle 0x487bd0
mov dword [esp + 0x24], ecx
test ecx, ecx
js 0x487eee
cmp ecx, dword [eax + 0x5c]
jge 0x487eee
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx + 0x58]
add esi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
cmp dword [esi + 0x10], ebx
jle 0x487ecb
xor edi, edi
test ebx, ebx
js 0x487eee
cmp ebx, dword [esi + 0x1c]
jge 0x487eee
mov eax, dword [esi + 0x18]
add eax, edi
push 0x554a88
push eax
call fcn.004052b0
add esp, 8
test eax, eax
je 0x487eba
cmp ebx, dword [esi + 0x30]
jge 0x487eee
mov eax, dword [esi + 0x2c]
mov edx, dword [eax + edi]
mov ecx, dword [eax + edi + 4]
add eax, edi
mov dword [esp + 0x44], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov eax, 0x10
mov ecx, 0x554d98
lea edx, [esp + 0x44]
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x487dc0
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x487bb3
mov byte [esp + 0x17], 1
cmp byte [esp + 0x16], 0
je 0x487c07
cmp byte [esp + 0x17], 0
je 0x487c07
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xc]
add edi, 4
test esi, esi
js 0x487eee
lea ecx, [esi + 1]
push edi
call fcn.00405c20
imul esi, esi, 0x6c
add esi, dword [edi + 4]
mov edi, dword [esp + 0x20]
call fcn.00483e50
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x60]
add dword [esp + 0x28], 0x6c
inc eax
mov dword [esp + 0x2c], eax
cmp eax, ecx
jl 0x487987
cmp dword [esp + 0x5c], 0
je 0x487c5f
xor esi, esi
test ecx, ecx
jle 0x487c4a
xor edi, edi
mov edx, dword [esp + 0x5c]
mov eax, dword [edi + edx]
lea ecx, [edi + edx]
mov edx, dword [eax]
push 0
call edx
inc esi
add edi, 0x6c
cmp esi, dword [esp + 0x60]
jl 0x487c30
mov eax, dword [esp + 0x5c]
push eax
call fcn.00415ef4
add esp, 4
mov dword [esp + 0x5c], 0
mov ecx, dword [0x54e298]
mov edx, dword [0x54e29c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x54e2a0]
mov dword [eax + 4], edx
mov edx, dword [0x54e2a4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0x64]
xor ebx, ebx
push eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], ebx
call fcn.004865f0
mov eax, dword [esp + 0x60]
cmp eax, ebx
jle 0x487cfc
mov dword [esp + 0x28], ebx
test ebx, ebx
js 0x487eee
cmp ebx, eax
jge 0x487eee
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 8]
add edx, dword [esp + 0x5c]
mov esi, dword [eax + 0xc]
mov dword [esp + 0x30], edx
test esi, esi
js 0x487eee
mov edi, eax
add edi, 4
lea ecx, [esi + 1]
push edi
call fcn.00405c20
imul esi, esi, 0x6c
add esi, dword [edi + 4]
mov edi, dword [esp + 0x30]
call fcn.00483e50
mov eax, dword [esp + 0x60]
add dword [esp + 0x28], 0x6c
inc ebx
cmp ebx, eax
jl 0x487ca7
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
or ebx, 0xffffffff
mov dword [esp + 0x30], ecx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x54], vtable.DSUtil::FilterTemplates.0
mov dword [esp + 0x78], 5
cmp dword [esp + 0x5c], 0
je 0x487d5d
xor edi, edi
cmp dword [esp + 0x60], edi
jle 0x487d48
xor esi, esi
mov edx, dword [esp + 0x5c]
mov eax, dword [esi + edx]
lea ecx, [esi + edx]
mov edx, dword [eax]
push 0
call edx
inc edi
add esi, 0x6c
cmp edi, dword [esp + 0x60]
jl 0x487d2e
mov eax, dword [esp + 0x5c]
push eax
call fcn.00415ef4
add esp, 4
mov dword [esp + 0x5c], 0
xor esi, esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x78], ebx
mov dword [esp + 0x58], vtable.CArray_class_DSUtil::FilterTemplate__class_DSUtil::FilterTemplate_const__.0
cmp dword [esp + 0x5c], esi
je 0x487da7
xor edi, edi
cmp dword [esp + 0x60], esi
jle 0x487d9a
mov ecx, dword [esp + 0x5c]
mov edx, dword [ecx + esi]
mov eax, dword [edx]
add ecx, esi
push 0
call eax
inc edi
add esi, 0x6c
cmp edi, dword [esp + 0x60]
jl 0x487d81
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00415ef4
add esp, 4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
movzx ebx, byte [ecx]
movzx eax, byte [edx]
sub eax, ebx
jne 0x487dec
movzx eax, byte [edx + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x487dec
movzx eax, byte [edx + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x487dec
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
je 0x487bcb
mov eax, 0x10
mov ecx, 0x554da8
lea edx, [esp + 0x44]
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x487e1f
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x487e06
jmp 0x487bcb
movzx eax, bl
movzx ebx, byte [ecx]
sub eax, ebx
jne 0x487e4b
movzx eax, byte [edx + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x487e4b
movzx eax, byte [edx + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x487e4b
movzx eax, byte [edx + 3]
movzx edx, byte [ecx + 3]
sub eax, edx
sar eax, 0x1f
or eax, 1
je 0x487bcb
mov eax, 0x10
mov ecx, 0x54cfd4
lea edx, [esp + 0x44]
mov ebx, dword [edx]
cmp ebx, dword [ecx]
jne 0x487e7e
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x487e65
jmp 0x487bcb
movzx eax, bl
movzx ebx, byte [ecx]
sub eax, ebx
jne 0x487eaa
movzx eax, byte [edx + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x487eaa
movzx eax, byte [edx + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x487eaa
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
je 0x487bcb
mov ebx, dword [esp + 0x1c]
inc ebx
add edi, 0x10
mov dword [esp + 0x1c], ebx
cmp ebx, dword [esi + 0x10]
jl 0x487b4e
mov eax, dword [esp + 0x18]
add dword [esp + 0x24], 0x3c
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x30]
jge 0x487bd0
mov ecx, eax
mov eax, dword [esp + 0x20]
jmp 0x487b21
call fcn.0041d34a
int3