Function at 0x487470
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f419e
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x58bd90]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add eax, 4
push eax
call fcn.00405b90
xor ebx, ebx
mov dword [esp + 0x2c], vtable.DSUtil::FilterTemplates.0
mov dword [esp + 0x30], vtable.CArray_class_DSUtil::FilterTemplate__class_DSUtil::FilterTemplate_const__.0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x50], ebx
lea eax, [esp + 0x30]
push eax
call fcn.00405b90
mov dword [esp + 0x50], 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 + 0x3c]
mov dword [eax + 0xc], edx
call fcn.00487360
mov ecx, dword [esp + 0x38]
xor eax, eax
mov dword [esp + 0x24], eax
cmp ecx, ebx
jle 0x487732
mov dword [esp + 0x20], ebx
cmp eax, ebx
jl 0x4878c5
cmp eax, ecx
jge 0x4878c5
mov ebx, dword [esp + 0x34]
add ebx, dword [esp + 0x20]
xor eax, eax
mov ecx, dword [ebx + 0x48]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
cmp ecx, eax
jle 0x487617
mov dword [esp + 0x1c], eax
test eax, eax
js 0x4878c5
cmp eax, dword [ebx + 0x48]
jge 0x4878c5
mov esi, dword [ebx + 0x44]
add esi, dword [esp + 0x1c]
xor edi, edi
cmp dword [esi + 0x10], edi
jle 0x4875fa
xor ebx, ebx
test edi, edi
js 0x4878c5
cmp edi, dword [esi + 0x1c]
jge 0x4878c5
mov eax, dword [esi + 0x18]
add eax, ebx
push 0x554a78
push eax
call fcn.004052b0
add esp, 8
test eax, eax
je 0x4875e5
cmp edi, dword [esi + 0x30]
jge 0x4878c5
mov eax, dword [esi + 0x2c]
mov edx, dword [eax + ebx]
add eax, ebx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00482620
add esp, 0x10
test al, al
je 0x48760e
inc edi
add ebx, 0x10
cmp edi, dword [esi + 0x10]
jl 0x487587
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add dword [esp + 0x1c], 0x3c
inc eax
mov dword [esp + 0x14], eax
cmp eax, ecx
jl 0x487566
jmp 0x487617
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x12], 1
mov ecx, dword [ebx + 0x5c]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
cmp ecx, eax
jle 0x4876e1
mov dword [esp + 0x1c], eax
test eax, eax
js 0x4878c5
cmp eax, dword [ebx + 0x5c]
jge 0x4878c5
mov esi, dword [ebx + 0x58]
add esi, dword [esp + 0x1c]
xor edi, edi
cmp dword [esi + 0x10], edi
jle 0x4876c4
xor ebx, ebx
test edi, edi
js 0x4878c5
cmp edi, dword [esi + 0x1c]
jge 0x4878c5
mov eax, dword [esi + 0x18]
add eax, ebx
push 0x554a78
push eax
call fcn.004052b0
add esp, 8
test eax, eax
je 0x4876af
cmp edi, dword [esi + 0x30]
jge 0x4878c5
mov eax, dword [esi + 0x2c]
mov edx, dword [eax + ebx]
add eax, ebx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.00482620
add esp, 0x10
test al, al
jne 0x4876d8
inc edi
add ebx, 0x10
cmp edi, dword [esi + 0x10]
jl 0x487651
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
add dword [esp + 0x1c], 0x3c
inc eax
mov dword [esp + 0x14], eax
cmp eax, ecx
jl 0x487630
jmp 0x4876e1
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x13], 1
cmp byte [esp + 0x12], 0
je 0x487716
cmp byte [esp + 0x13], 0
je 0x487716
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xc]
add edi, 4
test esi, esi
js 0x4878c5
lea ecx, [esi + 1]
push edi
call fcn.00405c20
imul esi, esi, 0x6c
add esi, dword [edi + 4]
mov edi, ebx
call fcn.00483e50
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
add dword [esp + 0x20], 0x6c
inc eax
xor ebx, ebx
mov dword [esp + 0x24], eax
cmp eax, ecx
jl 0x487527
cmp dword [esp + 0x34], ebx
je 0x487769
xor esi, esi
cmp ecx, ebx
jle 0x487758
xor edi, edi
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + edi]
mov eax, dword [edx]
add ecx, edi
push ebx
call eax
inc esi
add edi, 0x6c
cmp esi, dword [esp + 0x38]
jl 0x487740
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00415ef4
add esp, 4
mov dword [esp + 0x34], ebx
mov edx, dword [0x54e2a8]
mov ecx, dword [0x54e2ac]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [0x54e2b0]
mov dword [eax + 4], ecx
mov ecx, dword [0x54e2b4]
mov dword [eax + 8], edx
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov dword [eax + 0xc], ecx
call fcn.004865f0
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x487806
mov dword [esp + 0x20], 0
test ebx, ebx
js 0x4878c5
cmp ebx, eax
jge 0x4878c5
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
add ecx, dword [esp + 0x34]
mov esi, dword [edi + 0xc]
add edi, 4
mov dword [esp + 0x28], ecx
test esi, esi
js 0x4878c5
lea ecx, [esi + 1]
push edi
call fcn.00405c20
imul esi, esi, 0x6c
add esi, dword [edi + 4]
mov edi, dword [esp + 0x28]
call fcn.00483e50
mov eax, dword [esp + 0x38]
add dword [esp + 0x20], 0x6c
inc ebx
cmp ebx, eax
jl 0x4877b3
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
or ebx, 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x2c], vtable.DSUtil::FilterTemplates.0
mov dword [esp + 0x50], 5
xor esi, esi
cmp dword [esp + 0x34], esi
je 0x487863
xor edi, edi
cmp dword [esp + 0x38], esi
jle 0x487850
mov ecx, dword [esp + 0x34]
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 + 0x38]
jl 0x487837
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00415ef4
add esp, 4
xor esi, esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], vtable.CArray_class_DSUtil::FilterTemplate__class_DSUtil::FilterTemplate_const__.0
cmp dword [esp + 0x34], esi
je 0x4878ac
xor edi, edi
cmp dword [esp + 0x38], esi
jle 0x48789f
mov edx, dword [esp + 0x34]
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 + 0x38]
jl 0x487885
mov eax, dword [esp + 0x34]
push eax
call fcn.00415ef4
add esp, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0041d34a
int3