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

Disassembly:
push 0xffffffffffffffff
push 0x44cc27
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4584e4]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 8]
mov edx, ecx
sub edx, dword [esi + 4]
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 4
jb 0x403525
xor ebx, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xac], ebx
fld qword [esp + 0xc0]
mov esi, dword [esi + 4]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
lea ecx, [esp + 0x40]
push ecx
sub esp, 8
mov eax, edx
shr eax, 0x1f
fstp qword [esp]
push 1
add eax, edx
push eax
push esi
lea ecx, [esp + 0xa8]
mov byte [esp + 0xd0], 2
call fcn.00405ef0
cmp eax, ebx
je 0x40317a
lea ecx, [esp + 0x90]
call fcn.00402320
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x403525
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x403525
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x40347b
mov edi, vtable.CCtrCompare2d_class_geocore::CTaggedPoint_2__double__.0
mov dword [esp + 0x18], edi
lea edx, [esp + 0x18]
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x68]
push edx
push eax
push esi
mov byte [esp + 0xc8], 5
call fcn.00405170
add esp, 0x10
cmp eax, ebx
jne 0x4034f2
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edx, ecx
sub edx, eax
test edx, 0xfffffffc
je 0x4034f2
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
lea edx, [esp + 0x18]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov ebp, eax
mov byte [esp + 0xb8], 9
mov dword [esp + 0x60], ebp
cmp eax, ecx
je 0x4033f7
nop
mov esi, dword [ebp]
lea ecx, [esp + 0x70]
call fcn.00402360
push esi
lea edi, [esp + 0x74]
call fcn.00402f30
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add esp, 4
add eax, edx
je 0x40349f
fld qword [esp + 0xc0]
lea ecx, [esp + 0x50]
push ecx
sub esp, 8
fstp qword [esp]
push 2
push eax
push esi
lea ecx, [esp + 0xa8]
call fcn.00405ef0
cmp eax, ebx
jne 0x40349f
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x54]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4033d5
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x84]
push ecx
push eax
push esi
call fcn.00405170
add esp, 0x10
cmp eax, ebx
jne 0x40349f
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov edx, ecx
sub edx, eax
test edx, 0xfffffffc
je 0x40349f
mov dword [esp + 0x1c], eax
cmp eax, ecx
je 0x4033d9
push 0x10
call fcn.00435b78
add esp, 4
cmp eax, ebx
je 0x403331
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
jmp 0x403333
xor eax, eax
mov esi, dword [esp + 0xc8]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x8c]
push eax
mov ecx, esi
mov byte [esp + 0xbc], 9
call fcn.00402440
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx]
mov edi, dword [esi]
mov ebp, dword [eax - 4]
mov ecx, edi
call fcn.00401e10
test al, al
sete dl
movzx eax, dl
push eax
push edi
mov ecx, ebp
call fcn.00402b00
mov esi, dword [esi + 4]
cmp esi, ebx
je 0x4033bc
mov edi, dword [esi]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push ecx
push edx
call fcn.004016c0
fcomp qword [0x44f370]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x4033aa
mov eax, 1
jmp 0x4033ac
xor eax, eax
push eax
push edi
mov ecx, ebp
call fcn.00402b00
mov esi, dword [esi + 8]
cmp esi, ebx
jne 0x403385
mov eax, dword [esp + 0x1c]
add eax, 4
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x38]
jne 0x403318
mov ebp, dword [esp + 0x60]
mov eax, dword [esp + 0x34]
add ebp, 4
mov dword [esp + 0x60], ebp
cmp ebp, dword [esp + 0x28]
jne 0x403250
cmp eax, ebx
je 0x4033f7
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x80]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0xb8], 7
call fcn.00401db0
mov eax, dword [esp + 0x54]
cmp eax, ebx
je 0x403428
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x74]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
cmp eax, ebx
je 0x403445
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x403456
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x64]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0xb8], 3
call fcn.00401db0
mov dword [esp + 0x18], vtable.CCtrCompare2d_class_geocore::CTaggedPoint_2__double__.0
lea ecx, [esp + 0x90]
call fcn.00402320
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x403498
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
jmp 0x403528
lea ecx, [esp + 0x30]
call fcn.00402270
lea ecx, [esp + 0x80]
mov byte [esp + 0xb8], 7
call fcn.00401db0
lea ecx, [esp + 0x50]
call fcn.00402270
lea ecx, [esp + 0x70]
call fcn.00402270
lea ecx, [esp + 0x20]
call fcn.00402270
lea ecx, [esp + 0x64]
mov byte [esp + 0xb8], 3
call fcn.00401db0
mov dword [esp + 0x18], vtable.CCtrCompare2d_class_geocore::CTaggedPoint_2__double__.0
jmp 0x403510
lea ecx, [esp + 0x20]
call fcn.00402270
lea ecx, [esp + 0x64]
mov byte [esp + 0xb8], 3
call fcn.00401db0
mov dword [esp + 0x18], edi
lea ecx, [esp + 0x90]
call fcn.00402320
lea ecx, [esp + 0x40]
call fcn.00402270
or eax, 0xffffffff
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret