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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
movsd dword es:[edi], dword [esi]
call fcn.0045dfe2
mov eax, dword [ebx + 0x668]
mov ecx, dword [ebx + 0x688]
lea esi, [ebx + 0x174]
lea edi, [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add dword [ebp + 8], eax
mov eax, dword [ebx + 0x66c]
add dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x670]
sub dword [ebp + 0x10], eax
mov eax, dword [ebx + 0x674]
sub dword [ebp + 0x14], eax
test ecx, ecx
je 0x485871
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x485871
mov ecx, dword [ebx + 0x688]
mov eax, dword [ecx]
call dword [eax + 0x7c]
sub dword [ebp + 0x10], eax
mov ecx, dword [ebx + 0x68c]
test ecx, ecx
je 0x485898
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x485898
mov ecx, dword [ebx + 0x68c]
mov eax, dword [ecx]
call dword [eax + 0x84]
sub dword [ebp + 0x14], eax
cmp dword [ebx + 0x660], 0
jne 0x4858aa
push 0
push 0
jmp 0x485f4e
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
sub esi, dword [ebp + 8]
sub edi, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x68c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
test ecx, ecx
je 0x4858e4
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x4858e4
mov eax, dword [ebx + 0x68c]
add esi, dword [eax + 0x65c]
mov dword [esp + 0x44], esi
mov ecx, dword [ebx + 0x688]
xor esi, esi
cmp ecx, esi
je 0x48590c
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x48590c
mov eax, dword [ebx + 0x688]
add edi, dword [eax + 0x65c]
mov dword [esp + 0x48], edi
cmp dword [ebx + 0x660], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jle 0x485adf
mov eax, dword [ebx + 0x65c]
mov ecx, dword [esp + 0x1c]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xdc]
test al, al
je 0x485acb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x108]
test al, al
jne 0x485acb
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov dword [esp + 0x40], edi
call dword [eax + 0x64]
sub edi, dword [esp + 0x34]
mov eax, dword [esi]
sub edi, dword [esp + 0x2c]
mov ecx, esi
call dword [eax + 0x7c]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x84]
cmp dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
jg 0x4859af
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
test eax, eax
jg 0x4859c5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
mov dword [esp + 0x24], eax
cmp edi, dword [esp + 0x20]
jle 0x4859cf
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x40], eax
jle 0x4859d9
mov dword [esp + 0x40], eax
push dword [esp + 0x40]
mov eax, dword [esi]
push edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x134]
cmp dword [esp + 0x10], 0
jne 0x4859fa
inc dword [esp + 0x28]
jmp 0x485a36
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
cmp dword [esp + 0x10], eax
jge 0x485a18
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
cmp dword [esp + 0x10], eax
jle 0x485a36
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
lea ecx, [esp + 0x70]
push ecx
mov ecx, esi
call dword [eax + 0x64]
lea ecx, [esp + 0x80]
lea edi, [eax + 0xc]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x64]
mov eax, dword [eax + 4]
add eax, dword [edi]
add eax, dword [esp + 0x10]
add dword [esp + 0x14], eax
cmp dword [esp + 0xc], 0
jg 0x485a6d
and dword [esp + 0xc], 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x8c]
cmp dword [esp + 0xc], eax
jge 0x485a8b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x8c]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
cmp dword [esp + 0xc], eax
jle 0x485aa9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xc]
add ecx, eax
mov eax, dword [esp + 0x2c]
add eax, ecx
cmp dword [esp + 0x60], eax
jg 0x485ac3
mov dword [esp + 0x60], eax
inc dword [esp + 0x18]
mov edi, dword [esp + 0x48]
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [ebx + 0x660]
jl 0x48592c
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x678]
dec eax
imul ecx, eax
add dword [esp + 0x14], ecx
xor ecx, ecx
cmp dword [esp + 0x28], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], ecx
jle 0x485b1c
mov eax, edi
sub eax, dword [esp + 0x14]
mov dword [esp + 0x54], ecx
cdq
idiv dword [esp + 0x28]
cmp eax, ecx
jl 0x485b1c
mov dword [esp + 0x54], eax
mov ecx, dword [ebx + 0x688]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x68], edi
mov dword [esp + 0x18], esi
test ecx, ecx
je 0x485b4d
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x485b4d
mov eax, dword [ebx + 0x688]
sub esi, dword [eax + 0x660]
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp dword [ebx + 0x660], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jle 0x485f3a
mov eax, dword [ebx + 0x65c]
mov ecx, dword [esp + 0x1c]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x50], esi
call dword [eax + 0xdc]
test al, al
je 0x485f26
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x108]
test al, al
je 0x485bb3
push dword [esp + 0x1c]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1dc]
jmp 0x485f26
mov eax, dword [esi]
inc dword [esp + 0x5c]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call dword [eax + 0x64]
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x3c], edi
sub edi, dword [esp + 0x34]
mov dword [esp + 0x68], eax
sub edi, dword [esp + 0x2c]
mov dword [esp + 0x40], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x7c]
mov dword [esp + 0x20], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x84]
cmp dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
jg 0x485c11
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
test eax, eax
jg 0x485c27
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
mov dword [esp + 0x24], eax
cmp edi, dword [esp + 0x20]
jle 0x485c31
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x40], eax
jle 0x485c3b
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
add ecx, eax
sub dword [esp + 0x14], ecx
cmp dword [esp + 0x5c], 1
jle 0x485c5a
mov eax, dword [ebx + 0x678]
sub dword [esp + 0x14], eax
push dword [esp + 0x40]
mov eax, dword [esi]
push edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x134]
cmp dword [esp + 0x10], 0
jne 0x485ce2
mov eax, dword [esp + 0x54]
inc dword [esp + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x28]
jne 0x485ca4
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x38]
sub eax, dword [esp + 0x14]
jns 0x485ca0
and dword [esp + 0x10], 0
jmp 0x485ca4
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
cmp dword [esp + 0x10], eax
jge 0x485cc2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
cmp dword [esp + 0x10], eax
jle 0x485d26
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
mov dword [esp + 0x10], eax
jmp 0x485d26
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
cmp dword [esp + 0x10], eax
jge 0x485d00
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
mov dword [esp + 0x10], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
cmp dword [esp + 0x10], eax
jle 0x485d1e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x485d4a
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
test eax, eax
jge 0x485d52
xor eax, eax
mov dword [esp + 0xc], eax
cmp eax, edi
jle 0x485d5a
mov dword [esp + 0xc], edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x8c]
cmp dword [esp + 0xc], eax
jge 0x485d78
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x8c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x168]
cmp eax, 1
jne 0x485e17
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
add eax, ecx
mov ecx, dword [ebx + 0x68c]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
test ecx, ecx
je 0x485dc9
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x485dc9
mov ecx, dword [ebx + 0x68c]
mov eax, dword [ecx + 0x65c]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [ecx + 0x660]
add esi, eax
mov edi, dword [esp + 0xc]
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
mov ecx, eax
sar ecx, 1
mov eax, esi
sub eax, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x90], eax
add eax, edi
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x10]
lea esi, [ecx + edx]
add eax, ecx
add eax, edx
mov dword [esp + 0x94], esi
mov dword [esp + 0x9c], eax
lea esi, [esp + 0x90]
jmp 0x485ee4
mov ecx, dword [ebx + 0x68c]
cmp eax, 2
jne 0x485e8f
mov esi, dword [ebp + 0x10]
test ecx, ecx
je 0x485e49
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x485e49
mov eax, dword [ebx + 0x68c]
mov ecx, dword [eax + 0x65c]
sub ecx, dword [eax + 0x660]
add esi, ecx
mov ecx, dword [esp + 0x18]
mov eax, esi
sub eax, dword [esp + 0xc]
sub esi, dword [esp + 0x34]
sub eax, dword [esp + 0x34]
mov dword [esp + 0x88], esi
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x30]
lea edx, [eax + ecx]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x10]
add edx, eax
add edx, ecx
mov dword [esp + 0x8c], edx
lea esi, [esp + 0x80]
jmp 0x485ee4
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x485eae
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x485eae
mov eax, dword [ebx + 0x68c]
sub esi, dword [eax + 0x660]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
lea eax, [esi + ecx]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x30]
lea edi, [eax + edx]
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0xc]
add esi, edi
add esi, ecx
mov ecx, dword [esp + 0x10]
add ecx, eax
add ecx, edx
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], ecx
lea esi, [esp + 0x70]
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx]
push 0
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x4c]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov edx, dword [ebx + 0x678]
lea esi, [eax + ecx]
add esi, dword [esp + 0x30]
add esi, edx
add dword [esp + 0x18], esi
lea esi, [eax + ecx]
add esi, dword [esp + 0x30]
add eax, ecx
add dword [esp + 0x4c], esi
add eax, edx
sub dword [esp + 0x68], eax
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [ebx + 0x660]
jl 0x485b6f
mov ecx, dword [ebx + 0x678]
imul ecx, dword [esp + 0x6c]
add ecx, dword [esp + 0x4c]
push ecx
push dword [esp + 0x64]
mov eax, dword [ebx]
sub esp, 0x10
mov edi, esp
lea esi, [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1e0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14