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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp dword [esi + 0xef4], ebx
ja 0x56e49f
fldz
inc dword [esi + 0xf00]
fcomp dword [esi + 0xf04]
mov byte [esp + 0xf], 1
fnstsw ax
test ah, 0x44
jnp 0x56e3fe
mov byte [esp + 0xf], bl
cmp byte [esi + 0xf74], bl
je 0x56e470
mov eax, dword [esi + 0xf6c]
sub eax, dword [esi + 0xf68]
sar eax, 2
test eax, eax
jbe 0x56e459
mov edi, dword [esi + 0xf6c]
sub edi, dword [esi + 0xf68]
sar edi, 2
call fcn.00437c00
xor edx, edx
div edi
mov ecx, dword [esi + 0xf6c]
sub ecx, dword [esi + 0xf68]
sar ecx, 2
mov edi, edx
cmp edi, ecx
jb 0x56e44b
call fcn.006441b7
mov edx, dword [esi + 0xf68]
mov ecx, dword [edx + edi*4]
lea eax, [esi + 0x50]
jmp 0x56e465
call fcn.00437c00
lea edx, [esi + 0x50]
mov ecx, eax
mov eax, edx
call fcn.00581380
mov byte [esi + 0xf74], bl
cmp byte [esp + 0xf], bl
je 0x56e4a8
lea ecx, [esi + 0xa14]
mov eax, ecx
call fcn.0054ade0
test eax, eax
je 0x56e4a8
mov eax, ecx
call fcn.0054a4c0
mov edx, ecx
push 1
mov ecx, esi
call fcn.00569610
mov byte [esi + 0xf74], bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov cl, 1
lea ebx, [ebx]
fld dword [esi + 0xf04]
fild dword [esi + 0xe98]
fcompp
fnstsw ax
test ah, 0x41
je 0x56e4c9
test cl, cl
je 0x56e49f
fld dword [esi + 0xf44]
mov byte [esp + 0x37], 0
fdivr qword [0x82dc58]
mov dword [esi + 0xf3c], ebx
mov dword [esi + 0xf38], ebx
fstp dword [esp + 0x4c]
fld dword [esi + 0xf04]
call fcn.0076f850
cmp byte [esp + 0xf], 0
mov edi, eax
je 0x56e50c
fld dword [esi + 0xf04]
fadd qword [0x82e5d0]
jmp 0x56e51c
fild dword [esi + 0xe94]
fdiv dword [esp + 0x4c]
fadd dword [esi + 0xf04]
fstp dword [esi + 0xf04]
fld dword [esi + 0xf04]
call fcn.0076f850
cmp edi, eax
setne al
mov byte [esi + 0xf08], al
mov esi, dword [esi + 0xec4]
mov ecx, dword [esi + 0x44]
sub ecx, dword [esi + 0x40]
add esi, 0x34
mov eax, 0x30c30c31
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x3c], ebx
test ecx, ecx
jle 0x56f16e
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0xec4]
mov ecx, dword [esi + 0x44]
sub ecx, dword [esi + 0x40]
mov edi, dword [esp + 0x3c]
add esi, 0x34
mov eax, 0x30c30c31
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x56e594
call fcn.006441b7
mov ecx, dword [ebx + 0xed8]
sub ecx, dword [ebx + 0xed4]
mov eax, edi
imul eax, eax, 0x150
add eax, dword [esi + 0xc]
mov dword [esp + 0x30], eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x56e5c9
call fcn.006441b7
lea eax, [edi + edi*2]
shl eax, 5
add eax, dword [ebx + 0xed4]
cmp byte [eax + 0x1c], 0
mov dword [esp + 0x38], eax
je 0x56f13a
mov ebx, dword [esp + 0x30]
mov ecx, dword [ebx + 0x44]
sub ecx, dword [ebx + 0x40]
mov eax, 0xae4c415d
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
mov dword [esp + 0x28], esi
test eax, eax
jle 0x56e8d1
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x44]
sub ecx, dword [esi + 0x40]
mov eax, 0xae4c415d
imul ecx
add edx, ecx
sar edx, 8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x28], ecx
jb 0x56e63a
call fcn.006441b7
mov ebx, dword [esi + 0x40]
add ebx, dword [esp + 0x24]
lea eax, [esp + 0x54]
call fcn.0057e350
fldz
mov edi, dword [ebp + 8]
sub esp, 8
fstp dword [esp + 4]
lea edx, [ebx + 0xec]
fld dword [edi + 0xf04]
fstp dword [esp]
push edx
call fcn.00561300
fstp dword [esp + 0x10]
fldz
fld dword [esp + 0x10]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x56e68f
push ecx
lea esi, [esp + 0x58]
fstp dword [esp]
call fcn.0057e420
jmp 0x56e691
fstp st(0)
fld dword [edi + 0xf04]
push ecx
lea eax, [esp + 0x9c]
fstp dword [esp]
push eax
lea esi, [ebx + 0x30]
call fcn.00561ab0
fld qword [esp + 0xa0]
fstp dword [esp + 0x10]
sub esp, 8
fld dword [esp + 0x18]
lea esi, [esp + 0x5c]
fstp dword [esp + 4]
fld qword [esp + 0xa0]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.0057e370
fld dword [edi + 0xf04]
mov esi, dword [esp + 0x30]
push ecx
lea ecx, [esp + 0xac]
fstp dword [esp]
push ecx
sub esi, 0xffffff80
call fcn.00561ab0
fld qword [esp + 0xb0]
fstp dword [esp + 0x10]
sub esp, 8
fld dword [esp + 0x18]
lea esi, [esp + 0x5c]
fstp dword [esp + 4]
fld qword [esp + 0xb0]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.0057e370
fldz
mov eax, dword [esp + 0x30]
sub esp, 8
fstp dword [esp + 4]
fld dword [edi + 0xf04]
add eax, 0xf0
fstp dword [esp]
push eax
call fcn.00561300
fstp dword [esp + 0x10]
fldz
fld dword [esp + 0x10]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x56e76c
push ecx
fstp dword [esp]
call fcn.0057e420
jmp 0x56e76e
fstp st(0)
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x140]
lea edx, [edi + 0xf78]
call fcn.0057e110
mov edx, eax
lea eax, [esp + 0x54]
call fcn.0057e360
mov ecx, dword [ebx + 0x158]
sub ecx, dword [ebx + 0x154]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x20], 0
test eax, eax
jle 0x56e895
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov ecx, dword [ebx + 0x158]
sub ecx, dword [ebx + 0x154]
mov edi, dword [esp + 0x20]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x56e7f1
call fcn.006441b7
mov edx, dword [ebx + 0x170]
sub edx, dword [ebx + 0x16c]
mov esi, dword [ebx + 0x154]
add esi, dword [esp + 0x1c]
sar edx, 4
cmp edi, edx
jb 0x56e813
call fcn.006441b7
mov eax, dword [ebp + 8]
fld dword [eax + 0xf04]
mov edi, dword [ebx + 0x16c]
add edi, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x12c]
fstp dword [esp]
push ecx
call fcn.00561ab0
lea ecx, [esp + 0x54]
lea esi, [esp + 0x108]
call fcn.00560b40
mov edx, dword [eax]
mov dword [edi], edx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov edx, dword [eax + 8]
mov esi, dword [esp + 0x20]
mov dword [edi + 8], edx
mov eax, dword [eax + 0xc]
add dword [esp + 0x1c], 0x60
add dword [esp + 0x14], 0x10
mov dword [edi + 0xc], eax
mov ecx, dword [ebx + 0x158]
sub ecx, dword [ebx + 0x154]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
inc esi
add ecx, edx
cmp esi, ecx
mov dword [esp + 0x20], esi
jl 0x56e7c7
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x44]
sub ecx, dword [eax + 0x40]
mov esi, dword [esp + 0x28]
add dword [esp + 0x24], 0x178
mov eax, 0xae4c415d
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
cmp esi, eax
mov dword [esp + 0x28], esi
jl 0x56e612
mov ebx, dword [esp + 0x30]
xor esi, esi
mov ecx, dword [ebx + 0x74]
sub ecx, dword [ebx + 0x70]
mov eax, 0xac769185
imul ecx
add edx, ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x1c], esi
test ecx, ecx
jle 0x56ebcb
mov dword [esp + 0x14], 0
mov edi, edi
mov ecx, dword [ebx + 0x74]
sub ecx, dword [ebx + 0x70]
mov eax, 0xac769185
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x56e924
call fcn.006441b7
mov edi, dword [ebx + 0x70]
add edi, dword [esp + 0x14]
lea eax, [esp + 0x54]
call fcn.0057e350
fldz
mov esi, dword [ebp + 8]
sub esp, 8
fstp dword [esp + 4]
lea ecx, [edi + 0x24c]
fld dword [esi + 0xf04]
fstp dword [esp]
push ecx
call fcn.00561300
fmul qword [0x87d2f0]
sub esp, 0x10
lea edx, [edi + 0x1f0]
fstp dword [esp + 0x20]
fld dword [esp + 0x20]
fstp dword [esp + 0xc]
fldz
fstp dword [esp + 4]
fld dword [esi + 0xf04]
fstp dword [esp]
push edx
call fcn.00561300
fmul qword [0x87d2f0]
lea esi, [esp + 0x5c]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.0057e450
fldz
mov eax, dword [ebp + 8]
sub esp, 8
fstp dword [esp + 4]
fld dword [eax + 0xf04]
lea ecx, [edi + 0x194]
fstp dword [esp]
push ecx
call fcn.00561300
fstp dword [esp + 0x10]
fldz
fld dword [esp + 0x10]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x56e9e0
push ecx
fstp dword [esp]
call fcn.0057e420
jmp 0x56e9e2
fstp st(0)
mov edx, dword [ebp + 8]
fld dword [edx + 0xf04]
push ecx
lea eax, [esp + 0x7c]
fstp dword [esp]
push eax
lea esi, [edi + 0x20]
call fcn.00561ab0
fld qword [esp + 0x80]
fstp dword [esp + 0x10]
sub esp, 8
fld dword [esp + 0x18]
lea esi, [esp + 0x5c]
fstp dword [esp + 4]
fld qword [esp + 0x80]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.0057e370
push ecx
mov ecx, dword [ebp + 8]
fld dword [ecx + 0xf04]
lea edx, [esp + 0x8c]
fstp dword [esp]
push edx
lea esi, [ebx + 0x80]
call fcn.00561ab0
fld qword [esp + 0x90]
fstp dword [esp + 0x10]
sub esp, 8
fld dword [esp + 0x18]
lea esi, [esp + 0x5c]
fstp dword [esp + 4]
fld qword [esp + 0x90]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.0057e370
fldz
mov eax, dword [ebp + 8]
sub esp, 8
fstp dword [esp + 4]
fld dword [eax + 0xf04]
lea eax, [ebx + 0xf0]
fstp dword [esp]
push eax
call fcn.00561300
fstp dword [esp + 0x10]
fldz
fld dword [esp + 0x10]
fucom st(1)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x56eabf
push ecx
fstp dword [esp]
call fcn.0057e420
jmp 0x56eac1
fstp st(0)
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x54]
push ecx
lea eax, [esp + 0x140]
add edx, 0xf78
call fcn.0057e110
mov edx, eax
lea eax, [esp + 0x54]
call fcn.0057e360
fld qword [0x82de58]
fst qword [esp + 0xb8]
lea edx, [esp + 0xb8]
fst qword [esp + 0xc0]
mov dword [esp + 0x20], edx
fld qword [0x7a8008]
add edi, 0x2a8
fst qword [esp + 0xc8]
mov dword [esp + 0x10], 5
fst qword [esp + 0xd8]
fst qword [esp + 0xe0]
fstp qword [esp + 0xf0]
fst qword [esp + 0xd0]
fstp qword [esp + 0xe8]
fldz
fst qword [esp + 0xf8]
fstp qword [esp + 0x100]
jmp 0x56eb60
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x54]
lea esi, [esp + 0x118]
call fcn.00560b40
mov ecx, dword [eax]
add dword [esp + 0x20], 0x10
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
add edi, 0x10
sub dword [esp + 0x10], 1
jne 0x56eb60
mov ecx, dword [ebx + 0x74]
sub ecx, dword [ebx + 0x70]
mov esi, dword [esp + 0x1c]
add dword [esp + 0x14], 0x2f8
mov eax, 0xac769185
imul ecx
add edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
cmp esi, eax
mov dword [esp + 0x1c], esi
jl 0x56e900
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0x10]
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x44], 0
test ecx, ecx
jle 0x56f13a
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], eax
mov esi, dword [esp + 0x30]
mov ecx, dword [esi + 0x2c]
sub ecx, dword [esi + 0x28]
mov edi, dword [esp + 0x44]
mov eax, 0x42df9bb1
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x56ec28
call fcn.006441b7
mov eax, dword [esi + 0x28]
add eax, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov dword [esp + 0x28], eax
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x56ec57
call fcn.006441b7
mov ebx, dword [esi + 0x10]
add ebx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 1
cmp byte [ebx + 0xd4], al
je 0x56f0e7
cmp dword [esp + 0x24], 0
jle 0x56f0e7
mov edx, dword [ebp + 8]
mov esi, dword [esp + 0x28]
fld dword [edx + 0xf04]
dec dword [esp + 0x24]
xor eax, eax
push ecx
lea edi, [esi + 0x564]
fstp dword [esp]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call fcn.005617b0
fcomp qword [0x82e3b8]
fnstsw ax
test ah, 0x41
jne 0x56eda8
cmp byte [ebx + 0x2c], 0
mov byte [esp + 0xf], 1
jne 0x56ecea
fild dword [esi + 0x1c]
mov eax, dword [ebp + 8]
fmul dword [esp + 0x4c]
fidiv dword [eax + 0xe94]
fiadd dword [esp + 0x24]
call fcn.0076f850
mov dword [esp + 0x24], eax
mov cl, byte [esp + 0xf]
fldz
mov esi, edi
mov byte [ebx + 0x2c], cl
push ecx
fstp dword [esp]
call fcn.00561850
mov esi, dword [ebp + 8]
fstp dword [esp + 0x2c]
fild dword [esi + 0xe9c]
add esi, 0xe9c
push ecx
fadd qword [0x7a8008]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.00561800
fstp dword [esp + 0x14]
push ecx
fild dword [esi]
fadd qword [0x7a8008]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fstp dword [esp]
call fcn.005617b0
mov edx, dword [ebp + 8]
fstp dword [esp + 0x18]
fld dword [edx + 0xf04]
fld dword [esp + 0x2c]
fcompp
fnstsw ax
test ah, 0x41
jp 0x56edba
mov eax, edx
fld dword [eax + 0xf04]
fld dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 0x41
je 0x56ed85
fld dword [esp + 0x18]
fcomp qword [0x82e3b8]
fnstsw ax
test ah, 0x41
jne 0x56edba
mov eax, edx
cmp byte [eax + 0xf5a], 0
jne 0x56eda1
fld dword [eax + 0xf04]
fild dword [esi]
fcompp
fnstsw ax
test ah, 0x41
jne 0x56edba
mov ecx, 1
jmp 0x56edbc
mov byte [esp + 0xf], 0
mov dword [esp + 0x24], 0
jmp 0x56ecea
xor ecx, ecx
cmp byte [esp + 0xf], 0
mov eax, dword [esp + 0x28]
mov byte [ebx + 0x2d], cl
jne 0x56edd8
cmp byte [eax + 0x34], 0
je 0x56efd4
test cl, cl
je 0x56ede0
mov dword [esp + 0x1c], 1
cmp byte [eax + 0x34], 0
je 0x56efd4
mov ecx, dword [eax + 0x48]
sub ecx, dword [eax + 0x44]
xor edi, edi
test ecx, 0xfffffffc
jle 0x56ee96
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x48]
sub edx, dword [eax + 0x44]
sar edx, 2
cmp edi, edx
jb 0x56ee18
call fcn.006441b7
mov eax, dword [esp + 0x28]
mov edx, dword [ebp + 8]
mov ecx, dword [eax + 0x44]
mov eax, dword [ecx + edi*4]
mov esi, dword [edx + 0xec4]
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
add esi, 4
sar ecx, 2
mov dword [esp + 0x18], eax
cmp eax, ecx
jb 0x56ee48
call fcn.006441b7
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0xc]
mov esi, dword [edx + eax*4]
mov eax, dword [ebx + 0x40]
sub eax, dword [ebx + 0x3c]
sar eax, 4
cmp edi, eax
jb 0x56ee60
call fcn.006441b7
mov ecx, dword [ebx + 0x3c]
add ecx, dword [esp + 0x14]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebx + 0x48]
push eax
push ecx
push 0
push ebx
push esi
push edx
call fcn.0056b8a0
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x48]
sub ecx, dword [eax + 0x44]
add dword [esp + 0x14], 0x10
inc edi
sar ecx, 2
cmp edi, ecx
jl 0x56ee02
mov edx, dword [esp + 0x38]
mov eax, dword [ebp + 8]
lea esi, [ebx + 0x48]
push esi
push ebx
push edx
push eax
call fcn.0056cba0
mov edi, dword [esi]
test edi, edi
je 0x56f0da
mov ecx, dword [edi + 4]
mov esi, dword [edi + 0xc]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0xf44]
sub ecx, dword [esi + 0xf40]
mov eax, 0x2fa0be83
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], 0
test eax, eax
jle 0x56ef9f
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
mov ecx, dword [esi + 0xf44]
sub ecx, dword [esi + 0xf40]
mov eax, 0x2fa0be83
imul ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x14], ecx
jb 0x56ef1c
call fcn.006441b7
mov edx, dword [edi + 0x120]
sub edx, dword [edi + 0x11c]
mov eax, dword [esi + 0xf40]
add eax, dword [esp + 0x2c]
sar edx, 4
mov dword [esp + 0x50], eax
cmp dword [esp + 0x14], edx
jb 0x56ef44
call fcn.006441b7
mov ecx, dword [esp + 0x50]
mov edx, dword [ebp + 8]
push edi
lea eax, [edi + 0x128]
push eax
mov eax, dword [edi + 0x11c]
add eax, dword [esp + 0x20]
push eax
push ecx
push ebx
push esi
push edx
call fcn.0056b8a0
mov ecx, dword [esi + 0xf44]
sub ecx, dword [esi + 0xf40]
inc dword [esp + 0x14]
add dword [esp + 0x2c], 0xac0
add dword [esp + 0x18], 0x10
mov eax, 0x2fa0be83
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jl 0x56eef4
mov edx, dword [esp + 0x38]
mov eax, dword [ebp + 8]
lea ecx, [edi + 0x128]
push ecx
push ebx
push edx
push eax
call fcn.0056cba0
mov ecx, dword [edi + 0x130]
mov edi, dword [esp + 0x48]
add dword [esp + 0x20], ecx
inc dword [esp + 0x1c]
test edi, edi
jne 0x56eeb3
jmp 0x56f0da
mov edi, dword [eax + 0x20]
mov esi, dword [edx + 0xec4]
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
add esi, 4
sar eax, 2
cmp edi, eax
jb 0x56eff2
call fcn.006441b7
mov ecx, dword [esi + 0xc]
mov esi, dword [ecx + edi*4]
mov ecx, dword [esi + 0xf44]
sub ecx, dword [esi + 0xf40]
mov eax, 0x2fa0be83
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
xor edi, edi
test eax, eax
jle 0x56f0c0
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0xf44]
sub ecx, dword [esi + 0xf40]
mov eax, 0x2fa0be83
imul ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp edi, ecx
jb 0x56f04f
call fcn.006441b7
mov edx, dword [ebx + 0x68]
sub edx, dword [ebx + 0x64]
mov eax, dword [esi + 0xf40]
add eax, dword [esp + 0x18]
sar edx, 4
mov dword [esp + 0x48], eax
cmp edi, edx
jb 0x56f06f
call fcn.006441b7
mov ecx, dword [esp + 0x48]
mov edx, dword [ebp + 8]
push 0
lea eax, [ebx + 0x70]
push eax
mov eax, dword [ebx + 0x64]
add eax, dword [esp + 0x34]
push eax
push ecx
push ebx
push esi
push edx
call fcn.0056b8a0
mov ecx, dword [esi + 0xf44]
sub ecx, dword [esi + 0xf40]
add dword [esp + 0x18], 0xac0
add dword [esp + 0x2c], 0x10
mov eax, 0x2fa0be83
imul ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jl 0x56f029
mov edx, dword [esp + 0x38]
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x70]
push ecx
push ebx
push edx
push eax
call fcn.0056cba0
mov ecx, dword [ebx + 0x78]
mov dword [esp + 0x20], ecx
cmp byte [ebx + 0xd4], 0
jne 0x56ec7c
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
add dword [eax + 0xf3c], edx
mov ecx, dword [esp + 0x20]
add dword [eax + 0xf38], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x14]
sub ecx, dword [eax + 0x10]
mov esi, dword [esp + 0x44]
add dword [esp + 0x40], 0x7a8
add dword [esp + 0x10], 0xd8
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
cmp esi, eax
mov dword [esp + 0x44], esi
jl 0x56ec00
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xec4]
mov ecx, dword [eax + 0x44]
sub ecx, dword [eax + 0x40]
mov esi, dword [esp + 0x3c]
add eax, 0x34
mov eax, 0x30c30c31
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
cmp esi, eax
mov dword [esp + 0x3c], esi
jl 0x56e564
mov cl, byte [esp + 0x37]
mov esi, dword [ebp + 8]
mov byte [esp + 0xf], 0
xor ebx, ebx
jmp 0x56e4b0