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

Disassembly:
sub esp, 0x398
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x3bc]
mov eax, dword [edi + 4]
cmp eax, 0x14
jge 0x686a52
lea ecx, [esp + 0x16c]
call fcn.00602d90
lea ecx, [esp + 0x1ac]
call fcn.00602d90
mov esi, dword [esp + 0x3c4]
mov eax, dword [esp + 0x3c8]
push fcn.00602d90
push 5
mov ecx, dword [esi + 4]
lea edx, [esp + 0x250]
xor ebp, ebp
push 0x10
push edx
mov dword [esp + 0x220], ebp
mov dword [esp + 0x178], 0x6ac1c4
mov dword [esp + 0x224], eax
mov dword [esp + 0x21c], ecx
call fcn.0052d170
push fcn.00602d90
push 5
lea eax, [esp + 0x2a0]
push 0x10
push eax
call fcn.0052d170
push fcn.00602d90
push 5
lea ecx, [esp + 0x2f0]
push 0x10
push ecx
call fcn.0052d170
lea ecx, [esp + 0x37c]
call fcn.005f4010
mov ecx, dword [esp + 0x3ac]
lea edx, [esp + 0x14]
lea eax, [esp + 0x244]
push edx
push eax
push edi
push ecx
lea ecx, [esp + 0x124]
mov dword [esp + 0x24], 0x6abd54
call fcn.00689bc0
mov eax, dword [esp + 0x3c0]
mov ecx, dword [esp + 0x3b0]
lea edx, [esp + 0x168]
push edx
mov edx, dword [esp + 0x118]
push eax
push eax
mov eax, dword [esp + 0x3c0]
push eax
push ecx
lea ecx, [esp + 0x128]
call dword [edx + 4]
test al, al
je 0x686a3b
lea eax, [esp + 0x1ec]
lea ecx, [esp + 0x1ec]
push eax
call fcn.0053e600
fcomp dword [0x6abe54]
fnstsw ax
test ah, 0x41
jne 0x686a3b
fld dword [esp + 0x20c]
fcomp dword [esi + 4]
fnstsw ax
test ah, 1
je 0x686a3b
lea ecx, [esp + 0x1ec]
push ecx
lea ecx, [esp + 0x1f0]
call fcn.0053e600
fsqrt
lea edx, [esp + 0x10]
lea ecx, [esp + 0x1ec]
push edx
fdivr dword [0x6a7764]
fstp dword [esp + 0x14]
call fcn.005ff810
mov ecx, dword [esp + 0x1ec]
mov eax, dword [esp + 0x3b8]
mov edx, dword [esp + 0x1f0]
mov dword [esp + 0xcc], ecx
mov ecx, dword [esp + 0x1f8]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x1f4]
mov dword [esp + 0xd8], ecx
mov ecx, dword [esp + 0x204]
mov dword [esp + 0xd0], edx
mov edx, dword [esp + 0x1fc]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x200]
mov dword [esp + 0xe4], ecx
fld dword [esp + 0x20c]
lea ecx, [esp + 0xc4]
mov dword [esp + 0xdc], edx
mov edx, dword [esp + 0x208]
mov dword [esp + 0xe0], eax
mov eax, dword [esi]
push 1
fstp dword [esp + 0xf0]
push ecx
mov ecx, esi
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xf0], edx
call dword [eax + 8]
fstp st(0)
lea ecx, [esp + 0x114]
call fcn.0060c920
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret
jle 0x6870ae
cmp eax, 0x1e
jge 0x6870ae
cmp eax, 0x15
jne 0x686cee
mov ebx, dword [esp + 0x3c0]
lea edx, [esp + 0xc4]
push edx
mov ecx, ebx
call fcn.0053e890
lea eax, [ebx + 0x30]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.0053e6b0
push eax
lea edx, [esp + 0xd0]
lea eax, [esp + 0x34]
push edx
push eax
call fcn.0053e8e0
add esp, 0x14
lea ecx, [esp + 0xc4]
push eax
push ecx
lea ecx, [esp + 0x8c]
call fcn.0053ea80
mov ebp, dword [esp + 0x3b0]
lea eax, [esp + 0x64]
lea ecx, [esp + 0x84]
lea edx, [ebp + 0x30]
push edx
push eax
call fcn.0053eb00
mov esi, dword [esp + 0x3b4]
lea edx, [esp + 0x74]
lea ecx, [esi + 0x30]
push ecx
push edx
lea ecx, [esp + 0x8c]
call fcn.0053eb00
lea eax, [esp + 0xa4]
mov ecx, esi
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.0053e870
fstp dword [esp + 0x14]
lea ecx, [esp + 0xa4]
push ecx
mov ecx, esi
call fcn.0053e850
fstp dword [esp + 0x10]
lea edx, [esp + 0xa4]
mov ecx, esi
push edx
call fcn.0053e830
fstp dword [esp + 0x58]
lea eax, [esp + 0x94]
mov ecx, esi
push eax
call fcn.0053e870
fstp dword [esp + 0x60]
lea ecx, [esp + 0x94]
push ecx
mov ecx, esi
call fcn.0053e850
fstp dword [esp + 0x54]
lea edx, [esp + 0x94]
mov ecx, esi
push edx
call fcn.0053e830
fstp dword [esp + 0x50]
lea eax, [esp + 0x84]
mov ecx, esi
push eax
call fcn.0053e870
fstp dword [esp + 0x5c]
lea ecx, [esp + 0x84]
push ecx
mov ecx, esi
call fcn.0053e850
fstp dword [esp + 0x48]
lea edx, [esp + 0x84]
push edx
mov ecx, esi
call fcn.0053e830
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x5c]
fstp dword [esp + 0x50]
push ecx
lea eax, [esp + 0x68]
push edx
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0x70]
push edx
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x68]
push ecx
push edx
lea ecx, [esp + 0xe8]
call fcn.0053e6e0
lea eax, [esp + 0xc4]
lea ecx, [esp + 0x128]
push eax
call fcn.0053e740
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x158], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x15c], edx
mov edx, dword [edi]
mov dword [esp + 0x164], ecx
mov ecx, edi
mov dword [esp + 0x160], eax
call dword [edx + 0x28]
push ecx
lea ecx, [esp + 0x16c]
fstp dword [esp]
push ebx
push esi
mov esi, dword [esp + 0x3b8]
push ebp
push esi
call fcn.00688d40
mov eax, dword [esp + 0x3c4]
mov ecx, dword [esp + 0x3b8]
mov dword [esp + 0x23c], ecx
lea ecx, [esp + 0xf4]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x234], edx
lea edx, [esp + 0x108]
lea ecx, [esp + 0x12c]
mov dword [esp + 0x23c], eax
mov eax, dword [esi]
push edx
push ecx
mov ecx, esi
mov dword [esp + 0x24c], edi
mov dword [esp + 0x174], 0x6c442c
call dword [eax + 4]
lea edx, [esp + 0xf4]
lea eax, [esp + 0x104]
push edx
lea ecx, [esp + 0x78]
push eax
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x174]
push edx
push eax
mov ecx, edi
call fcn.00689570
lea ecx, [esp + 0x168]
call fcn.0060ced0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret
mov ebx, dword [esp + 0x3c0]
lea ecx, [esp + 0xc4]
push ecx
mov ecx, ebx
call fcn.0053e890
lea edx, [ebx + 0x30]
lea eax, [esp + 0x64]
push edx
push eax
call fcn.0053e6b0
lea ecx, [esp + 0xcc]
push eax
lea edx, [esp + 0x120]
push ecx
push edx
call fcn.0053e8e0
add esp, 0x14
lea ecx, [esp + 0x84]
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.0053ea80
mov ebp, dword [esp + 0x3b0]
lea edx, [esp + 0x74]
lea ecx, [ebp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x8c]
call fcn.0053eb00
mov esi, dword [esp + 0x3b4]
lea ecx, [esp + 0x38]
lea eax, [esi + 0x30]
push eax
push ecx
lea ecx, [esp + 0x8c]
call fcn.0053eb00
lea edx, [esp + 0xa4]
mov ecx, esi
push edx
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
call fcn.0053e870
fstp dword [esp + 0x4c]
lea eax, [esp + 0xa4]
mov ecx, esi
push eax
call fcn.0053e850
fstp dword [esp + 0x48]
lea ecx, [esp + 0xa4]
push ecx
mov ecx, esi
call fcn.0053e830
fstp dword [esp + 0x5c]
lea edx, [esp + 0x94]
mov ecx, esi
push edx
call fcn.0053e870
fstp dword [esp + 0x50]
lea eax, [esp + 0x94]
mov ecx, esi
push eax
call fcn.0053e850
fstp dword [esp + 0x54]
lea ecx, [esp + 0x94]
push ecx
mov ecx, esi
call fcn.0053e830
fstp dword [esp + 0x60]
lea edx, [esp + 0x84]
mov ecx, esi
push edx
call fcn.0053e870
fstp dword [esp + 0x58]
lea eax, [esp + 0x84]
mov ecx, esi
push eax
call fcn.0053e850
fstp dword [esp + 0x14]
lea ecx, [esp + 0x84]
push ecx
mov ecx, esi
call fcn.0053e830
lea edx, [esp + 0x4c]
lea eax, [esp + 0x48]
push edx
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x58]
fstp dword [esp + 0x18]
push ecx
lea eax, [esp + 0x60]
push edx
lea ecx, [esp + 0x70]
push eax
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0xe8]
call fcn.0053e6e0
lea edx, [esp + 0xc4]
lea ecx, [esp + 0x128]
push edx
call fcn.0053e740
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x160], edx
mov edx, dword [edi]
mov dword [esp + 0x15c], ecx
mov ecx, edi
mov dword [esp + 0x164], eax
call dword [edx + 0x28]
push ecx
lea ecx, [esp + 0x16c]
fstp dword [esp]
push ebx
push esi
mov esi, dword [esp + 0x3b8]
push ebp
push esi
call fcn.00688d40
mov eax, dword [esp + 0x3c4]
mov ecx, dword [esp + 0x3b8]
mov dword [esp + 0x23c], ecx
lea ecx, [esp + 0xf4]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x234], edx
lea edx, [esp + 0x108]
lea ecx, [esp + 0x12c]
mov dword [esp + 0x23c], eax
mov eax, dword [esi]
push edx
push ecx
mov ecx, esi
mov dword [esp + 0x24c], edi
mov dword [esp + 0x174], 0x6c4420
call dword [eax + 4]
fld dword [esp + 0x38]
fcomp dword [esp + 0x74]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
fnstsw ax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
test ah, 1
je 0x686f6d
fld dword [esp + 0x38]
jmp 0x686f71
fld dword [esp + 0x18]
fld dword [esp + 0x3c]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x686f88
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
fld dword [esp + 0x40]
fcomp dword [esp + 0x20]
fnstsw ax
test ah, 1
je 0x686f9f
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], eax
fld dword [esp + 0x44]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 1
je 0x686fb6
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], eax
fld dword [esp + 0x74]
fcomp dword [esp + 0x38]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
fnstsw ax
test ah, 1
je 0x686fdb
fld dword [esp + 0x38]
jmp 0x686fdf
fld dword [esp + 0x28]
fld dword [esp + 0x2c]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 1
je 0x686ff6
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], ecx
fld dword [esp + 0x30]
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 1
je 0x68700d
mov edx, dword [esp + 0x40]
mov dword [esp + 0x30], edx
fld dword [esp + 0x34]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 1
je 0x687024
mov eax, dword [esp + 0x44]
mov dword [esp + 0x34], eax
fld dword [esp + 0x104]
fadd st(2)
mov edx, dword [edi]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x16c]
push ecx
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fadd dword [esp + 0x110]
push eax
mov ecx, edi
fstp dword [esp + 0x28]
fld dword [esp + 0x2c]
fadd dword [esp + 0x118]
fstp dword [esp + 0x2c]
fld dword [esp + 0x100]
fadd st(1)
fstp dword [esp + 0x34]
fstp st(0)
fstp st(0)
fld dword [esp + 0x38]
fadd dword [esp + 0x104]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fadd dword [esp + 0x108]
fstp dword [esp + 0x3c]
call dword [edx + 0x2c]
lea ecx, [esp + 0x168]
call fcn.0060ced0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret
cmp eax, 0x1f
jne 0x68720b
push str.convexSweepCompound
call fcn.0062c040
mov eax, dword [edi + 0x10]
xor ebp, ebp
add esp, 4
cmp eax, ebp
mov dword [esp + 0x14], ebp
jle 0x687206
mov ebx, dword [esp + 0x3b8]
mov dword [esp + 0x10], ebp
jmp 0x6870e6
mov ebp, dword [esp + 0x10]
mov esi, dword [edi + 0x18]
lea ecx, [esp + 0x84]
add esi, ebp
push esi
call fcn.0053e740
add esi, 0x30
mov ecx, dword [esi]
mov dword [esp + 0xb4], ecx
mov edx, dword [esi + 4]
mov dword [esp + 0xb8], edx
mov edx, dword [edi + 0x18]
mov eax, dword [esi + 8]
mov dword [esp + 0xbc], eax
lea eax, [esp + 0xb4]
mov ecx, dword [esi + 0xc]
push eax
mov dword [esp + 0xc4], ecx
mov ebp, dword [edx + ebp + 0x40]
lea ecx, [esp + 0x118]
push ecx
mov ecx, dword [esp + 0x3c8]
call fcn.0053eb00
mov esi, eax
mov eax, dword [esp + 0x3c0]
lea edx, [esp + 0x84]
lea ecx, [esp + 0xc4]
push edx
push eax
push ecx
call fcn.0053e940
add esp, 0xc
lea ecx, [esp + 0x128]
push eax
call fcn.0053e740
mov edx, dword [esi]
mov dword [esp + 0x158], edx
mov eax, dword [esi + 4]
mov dword [esp + 0x15c], eax
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x3c8]
mov dword [esp + 0x160], ecx
mov edx, dword [esi + 0xc]
mov ecx, dword [esp + 0x3c4]
mov dword [esp + 0x164], edx
mov esi, dword [ebx + 0xc0]
push eax
mov eax, dword [esp + 0x3b8]
lea edx, [esp + 0x12c]
push ecx
mov ecx, dword [esp + 0x3b8]
push edx
mov edx, dword [esp + 0x3b8]
push ebp
push ebx
push eax
push ecx
push edx
mov dword [ebx + 0xc0], ebp
call fcn.00686810
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
add esp, 0x20
mov dword [ebx + 0xc0], esi
mov ecx, dword [edi + 0x10]
inc eax
add edx, 0x50
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
jl 0x6870e2
call fcn.0062c1d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x398
ret